{% load widget_tweaks %} {% load i18n %} {% load generic_template_filters %}
{{ form.non_field_errors }}
{% for field in form.visible_fields %}
{% if field.help_text != '' %} {% endif %}
{% if field.field.widget.input_type == 'checkbox' %}
{{ field|add_class:'oh-switch__checkbox' }}
{% else %}
{{ field|add_class:'form-control' }} {{ field.errors }}
{% endif %}
{% endfor %}