{% if field.is_hidden %} {{ field }} {% else %}
{% block label %} {% if show_label and not is_checkbox %} {% endif %} {% endblock label %}
{% if use_fieldset %} {% block fieldset %}
{% for choice in field %}
{{ choice.tag }} {% if forloop.last %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %} {% if field.errors %}
    {% for error in field.errors %}
  • {{ error|escape }}
  • {% endfor %}
{% endif %} {% endif %}
{% endfor %}
{% endblock fieldset %} {% else %} {% block non-fieldset %} {% if is_checkbox %} {{ field }} {% else %} {{ field }} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %} {% endblock non-fieldset %} {% if field.errors %} {% endif %} {% block post-error %} {% endblock post-error %} {% endif %}
{% endif %}