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