{% load passbook_utils %} {% load i18n %} {% csrf_token %} {% for field in form %}
{% if field.field.widget|fieldtype == 'RadioSelect' %}
{% for c in field %}
{% endfor %} {% if field.help_text %}

{{ field.help_text }}

{% endif %}
{% elif field.field.widget|fieldtype == 'Select' %}
{{ field|css_class:"pf-c-form-control" }} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% elif field.field.widget|fieldtype == 'CheckboxInput' %}
{{ field|css_class:"pf-c-check__input" }}
{% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% else %}
{{ field|css_class:'pf-c-form-control' }} {% if field.help_text %}

{{ field.help_text|safe }}

{% endif %}
{% endif %} {% for error in field.errors %}

{{ error }}

{% endfor %}
{% endfor %}