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