{% comment %} <div class="br-card" id="cardundefined">
    <div class="card-header">
        <div class="text-weight-semi-bold text-up-02">{{ fieldset.name }}</div>
      </div>
      <div class="card-content"> {% endcomment %}
<fieldset class="fieldset br-card" >
{% comment %} class="module aligned {{ fieldset.classes }}"{% if fieldset.name %} aria-labelledby="{{ prefix }}-{{ id_prefix}}-{{ id_suffix }}-heading"{% endif %}> {% endcomment %}
    {% if fieldset.name %}
        {% if fieldset.is_collapsible %}<details><summary>{% endif %}
        <legend>
            {{ fieldset.name }}
                {% if fieldset.description %}
                    <div class="description">{{ fieldset.description|safe }}</div>
                {% endif %}
        </legend>
        {% if fieldset.is_collapsible %}</summary>{% endif %}
    {% endif %}

    {% for line in fieldset %}
        <div class="form-row{% if line.fields|length == 1 and line.errors %} errors{% endif %}{% if not line.has_visible_field %} hidden{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}">
            
            {% for field in line %}
                <div>
                        <div class="
                            {% if field.is_checkbox %}br-checkbox {% else %} br-input br-textarea {% endif %}
                            {% if line.fields|length == 1 and line.errors %} danger {% endif %}
                            {% if not line.fields|length == 1 %} fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}{% endif %}{% if field.is_checkbox %} checkbox-row{% endif %}">
                            {% if field.is_checkbox %}
                                {{ field.field }} {{ field.label_tag }}
                            {% else %}
                                {{ field.label_tag }}
                                {% if field.is_readonly %}
                                    <div class="readonly">{{ field.contents }}</div>
                                {% else %}
                                    {{ field.field }}
                                {% endif %}
                            {% endif %}
                            {% if line.fields|length == 1 and line.errors %}
                                <span class="feedback danger" role="alert">
                                    <i class="fas fa-exclamation-circle" aria-hidden="true"></i>
                                    {{ field.errors }}
                                </span>
                            {% else %}
                                <div class="flex-container form-multiline">
                            {% endif %}
                            {% if not line.fields|length == 1 and not field.is_readonly %}
                                {{ field.errors }}
                            {% endif %}                            
                        </div>
                    {% if field.field.help_text and not field.is_readonly %}
                        <span class="feedback info {% if field.field.is_hidden %} hidden{% endif %}" {% if field.field.id_for_label %} id="{{ field.field.id_for_label }}_helptext"{% endif %}" role="alert">
                            <i class="fas fa-info-circle" aria-hidden="true"></i>
                            {{ field.field.help_text|safe }}
                        </span>
                    {% endif %}
                </div>
            {% endfor %}
            {% if not line.fields|length == 1 %}</div>{% endif %}
        </div>
    {% endfor %}
    {% if fieldset.name and fieldset.is_collapsible %}</details>{% endif %}
</fieldset>
    {% comment %} </div>
</div> {% endcomment %}