{% load i18n widget_tweaks %} {% csrf_token %} {% for field in form %} {% if field.errors %}
{{ field|attr:"class:form-control" }} {% for error in field.errors %}{{ error }}{% endfor %}
{% else %}
{{ field|attr:"class:form-control" }} {% if field.help_text %}

{{ field.help_text }}

{% endif %}
{% endif %} {% endfor %}