{% load widget_tweaks %} {% load core_tags %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% for field in form.visible_fields %}
{% with field|widget_type as type %} {% if type == 'radioselect' %} {% for choice in field %}
{% endfor %} {% elif type == 'yesno' %}
{% for choice in field %} {% endfor %}
{% elif type == 'checkboxinput' %}
{% elif type == 'checkboxselectmultiple' %} {% for choice in field %}
{% endfor %} {% else %} {% render_field field class="form-control" %} {% endif %} {% endwith %} {% if field.errors %}

{{ field.errors.as_text}}

{% endif %} {% if field.help_text %}
{{ field.help_text }}
{% endif %}
{% endfor %} {% for error in form.non_field_errors %} {% endfor %}