2 {% if errors and not fields %}
3 <p>{% for field in hidden_fields %}{{ field }}{% endfor %}</p>
5 {% for field, errors in fields %}
7 <p{% with classes=field.css_classes %}{% if classes %} class="{{ classes }}"{% endif %}{% endwith %}>
8 {% if field.label %}{{ field.label_tag }}{% endif %}
9 {% if field.help_text %}
10 <br><span class="helptext">{{ field.help_text|safe }}</span>
14 {% for field in hidden_fields %}{{ field }}{% endfor %}
18 {% if not fields and not errors %}
19 {% for field in hidden_fields %}{{ field }}{% endfor %}