Skip to content
Snippets Groups Projects
Commit 46c378ae authored by Chris Lawton's avatar Chris Lawton
Browse files

add checkbox and help text modifier classes

parent ff5f537e
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{% with widget_type=field|widget_type field_type=field|field_type %} {% with widget_type=field|widget_type field_type=field|field_type %}
<div class="form__group {% if field.errors %}form__error{% endif %}"> <div class="form__group {% if widget_type == 'checkbox_input' %}form__group--checkbox{% endif %} {% if field.help_text %}form__group--wrap{% endif %}{% if field.errors %}form__error{% endif %}">
{% if widget_type == 'clearable_file_input' or widget_type == 'multi_file_input' %} {% if widget_type == 'clearable_file_input' or widget_type == 'multi_file_input' %}
<span class="form__question">{{ field.label }}</span> <span class="form__question">{{ field.label }}</span>
<label for="{{ field.id_for_label }}" class="form__question form__question--{{ field_type }} {{ widget_type }}" {% if field.field.required %}required{% endif %}> <label for="{{ field.id_for_label }}" class="form__question form__question--{{ field_type }} {{ widget_type }}" {% if field.field.required %}required{% endif %}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment