{% load i18n %} {% load basefilters %}{% load widget_tweaks %} {{ form.non_field_errors }}
{% for field in form %} {% if field.name != 'profile' and field.name != 'country' and field.name != 'state' and field.name != '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.name == 'country' %}
{{form.country.errors}}
{{form.state.errors}}
{% endif %} {% endfor %}