From 46c378ae7cd524ecfe99092ab8fefa0f3fbe9c51 Mon Sep 17 00:00:00 2001 From: Chris Lawton <chris.lawton@torchbox.com> Date: Thu, 8 Mar 2018 12:09:00 +0000 Subject: [PATCH] add checkbox and help text modifier classes --- opentech/apply/funds/templates/funds/includes/field.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentech/apply/funds/templates/funds/includes/field.html b/opentech/apply/funds/templates/funds/includes/field.html index c2b2dca8b..51c02144e 100644 --- a/opentech/apply/funds/templates/funds/includes/field.html +++ b/opentech/apply/funds/templates/funds/includes/field.html @@ -2,7 +2,7 @@ {% 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' %} <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 %}> -- GitLab