{% load custom_tags %} {% for field in form %}
{% if field|widget_type == 'TextInput' %} {{ field|add_class:"input" }} {% elif field|widget_type == 'Select' %}
{{ field }}
{% else %} {{ field|add_class:"input" }} {% endif %}
{{ field.errors }}
{% endfor %}