{% load utils %} {% csrf_token %} {% for field in form %}
{% if field.field.widget|fieldtype == 'RadioSelect' %} {% for c in field %}
{% endfor %} {% elif field.field.widget|fieldtype == 'Select' %}
{{ field }}
{% elif field.field.widget|fieldtype == 'CheckboxInput' %}
{% else %}
{{ field|css_class:'form-control' }} {% if field.help_text %} {{ field.help_text }} {% endif %} {% for error in field.errors %}
{{ error }}
{% endfor %}
{% endif %}
{% endfor %}