{% load i18n %}{% load widget_tweaks %} {% load attendancefilters %} {% for field in form %} {% if field.field.widget.is_hidden %} {{ field }} {% endif %} {% endfor %}
{{form.non_field_errors}}
{% for field in form.visible_fields %} {% if field.field.widget|is_select_multiple or field.field.widget|is_text_area %}
{{ field|add_class:"form-control" }}
{{field.errors}} {% 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 %}