diff --git a/base/templates/horilla_form.html b/base/templates/horilla_form.html index 4d131f2ab..3d599b449 100644 --- a/base/templates/horilla_form.html +++ b/base/templates/horilla_form.html @@ -1,56 +1,52 @@ {% load i18n %}{% load widget_tweaks %} {% load horillafilters %} {% for field in form %} - {% if field.field.widget.is_hidden %} - {{ field }} - {% endif %} + {% 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 %} +
+
+
{{form.non_field_errors}}
+ {% for field in form.visible_fields %} + {% if field.field.widget|is_select_multiple or field.field.widget|is_text_area %} +
+ + {% if field.help_text != '' %} + + {% endif %} +
+
+ {{ field|add_class:"form-control" }} +
+ {{field.errors}} + {% else %} +
+
+ + {% if field.help_text != '' %} + + {% endif %} +
+ {% if field.field.widget.input_type == "checkbox" %} +
+ {{ field|add_class:"oh-switch__checkbox" }} +
+ {% else %} + {{ field|add_class:"form-control" }} + {% endif %} + {{field.errors}} +
+ {% endif %} + {% endfor %} +
+
- - -