{% load i18n %} {% load basefilters %}{% load widget_tweaks %} {{ form.non_field_errors }}
{% for field in form %} {% if field.label != "Profile" and field.label != 'Country' and field.label != 'State' and field.label != 'Badge id' %}
{% if field.field.widget.input_type == 'checkbox' %}
{{ field|add_class:'oh-switch__checkbox' }}
{% else %} {{ field|add_class:'form-control' }} {% endif %} {{ field.errors }}
{% elif field.label == 'Country' %}
{{form.country.errors}}
{{form.state.errors}}
{% endif %} {% endfor %}