{% load suit_forms %}
{% if fieldset.name %}

{{ fieldset.name }}

{% endif %} {% if fieldset.description %}
{{ fieldset.description|safe }}
{% endif %} {% for line in fieldset %} {% with is_single=line.fields|length_is:'1' %}
{% for field in line %} {% if is_single or forloop.first %}
{% endif %} {# Open multi-field #} {% if not is_single %}
{% if not forloop.first %}
{% endif %} {% endif %} {% if field.is_readonly %}

{{ field.contents }}

{% else %} {{ field.field }} {% endif %} {% if field.errors and not is_single and not field.is_readonly %}
{{ field.errors }}
{% endif %} {% if is_single and line.errors %}
{{ line.errors }}
{% endif %} {% if field.field.help_text %} {{ field.field.help_text|safe }} {% endif %} {# Close multi-field #} {% if not is_single %} {# Close multi-field-content #} {% if not forloop.first %}
{% endif %}
{% endif %} {# Close multi-row first field container #} {% if is_single or forloop.last %}
{% endif %} {% endfor %}
{% endwith %} {% endfor %}