{% load semantic_filters %} {% 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 %}
{% if field.contents %} {{ field.contents }} {% else %}   {% endif %}
{% else %} {{ field.field }} {% endif %} {% if field.is_checkbox %}{{ field.label_tag }}{% endif %} {% if not field.is_readonly %} {{ field.field.errors|semantic_error_list }} {% endif %} {% if field.is_checkbox %}
{% endif %} {% if field.field.help_text %}
{{ field.field.help_text|safe }}
{% endif %}
{% endfor %} {% if line.has_visible_field %}
{% endif %} {% endfor %}