{% load bootstrap_extras %} {% for field in form %}
{{ field|with_class:'form-control' }} {% if field.errors %} {{ field.errors|join:'
' }}
{% endif %} {% if field.help_text %} {{ field.help_text }} {% endif %}
{% endfor %}