{# -*- mode: jinja2 -*- #} {# cf. django-bootstrap-form/bootstrapform/templates/bootstrapform #} {% with fields = form.non_field_errors() %} {% if fields %}
{% endif %} {% endwith %} {% for field in form.hidden_fields() %} {{ field }} {% endfor %} {% for field in form.visible_fields() %} {% include "bootstrapform/field.html" %} {% endfor %}