{# This is a snippet, include it from somewhere else to get simple formfields in bootstrap style output #} {# Usage: {% include "bootstrap_fields.html" with fields=my_form %} #}
{% if fields.non_field_errors %} {{ fields.non_field_errors }} {% endif %} {% for field in fields %} {% include "bootstrap_field.html" with field=field %} {% endfor %}