{% comment %} Semantic opinions about fieldset and legend tags https://github.com/Semantic-Org/Semantic-UI/issues/596 However, class="ui segment" seems to do the same thing. {% endcomment %} {% if fieldset.name %}

{{ fieldset.name }}

{% endif %} {% if fieldset.description %}
{{ fieldset.description|safe }}
{% endif %} {% for line in fieldset %} {% if line.has_visible_field %}
{% endif %} {% for field in line %}
{% if field.is_checkbox %}
{% endif %} {% if not field.is_checkbox and not field.is_hidden %} {{ field.label_tag }} {% endif %} {% if field.is_readonly %} {{ field.contents }} {% else %} {{ field.field }} {% endif %} {% if field.is_checkbox %} {{ field.label_tag }} {% endif %} {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} {% if field.is_checkbox %}
{% endif %} {% if field.field.help_text %}
{{ field.field.help_text|safe }}
{% endif %} {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %}
{% endfor %} {% if line.has_visible_field %}
{% endif%} {% endfor %}