diff --git a/passbook/admin/templates/generic/form.html b/passbook/admin/templates/generic/form.html index 1d535b5dd..44f8f0e83 100644 --- a/passbook/admin/templates/generic/form.html +++ b/passbook/admin/templates/generic/form.html @@ -35,10 +35,12 @@ {% block beneath_form %} {% endblock %}
-
- diff --git a/passbook/core/templates/partials/form_horizontal.html b/passbook/core/templates/partials/form_horizontal.html index b482c7265..e717fa442 100644 --- a/passbook/core/templates/partials/form_horizontal.html +++ b/passbook/core/templates/partials/form_horizontal.html @@ -5,58 +5,72 @@ {% for field in form %}
{% if field.field.widget|fieldtype == 'RadioSelect' %} - - {% for c in field %} -
- - +
+
- {% if field.help_text %} -

{{ field.help_text }}

- {% endif %} - {% endfor %} - {% elif field.field.widget|fieldtype == 'Select' %} - -
- {{ field|css_class:"pf-c-form-control" }} - {% if field.help_text %} -

{{ field.help_text|safe }}

- {% endif %} -
- {% elif field.field.widget|fieldtype == 'CheckboxInput' %} -
-
- {{ field|css_class:"pf-c-check__input" }} - +
+ {% for c in field %} +
+ +
{% if field.help_text %} -

{{ field.help_text|safe }}

+

{{ field.help_text }}

{% endif %} + {% endfor %} +
+ {% elif field.field.widget|fieldtype == 'Select' %} +
+ +
+
+
+ {{ field|css_class:"pf-c-form-control" }} + {% if field.help_text %} +

{{ field.help_text|safe }}

+ {% endif %} +
+
+ {% elif field.field.widget|fieldtype == 'CheckboxInput' %} +
+
+
+ {{ field|css_class:"pf-c-check__input" }} + +
+ {% if field.help_text %} +

{{ field.help_text|safe }}

+ {% endif %} +
{% else %} - -
- {{ field|css_class:'pf-c-form-control' }} - {% if field.help_text %} -

{{ field.help_text|safe }}

- {% endif %} +
+ +
+
+
+ {{ field|css_class:'pf-c-form-control' }} + {% if field.help_text %} +

{{ field.help_text|safe }}

+ {% endif %} +
{% endif %} {% for error in field.errors %}