From 000fff1ca800cb534cef18101bc4b69c02415118 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Mon, 19 Feb 2018 15:44:25 +0000 Subject: [PATCH] Make sure that the multi upload inherits the css correctly --- opentech/apply/funds/templates/funds/includes/field.html | 2 +- opentech/static_src/src/sass/public/components/_form.scss | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/opentech/apply/funds/templates/funds/includes/field.html b/opentech/apply/funds/templates/funds/includes/field.html index 935b4cef3..c2b2dca8b 100644 --- a/opentech/apply/funds/templates/funds/includes/field.html +++ b/opentech/apply/funds/templates/funds/includes/field.html @@ -3,7 +3,7 @@ {% with widget_type=field|widget_type field_type=field|field_type %} <div class="form__group {% if field.errors %}form__error{% endif %}"> - {% if widget_type == 'clearable_file_input' %} + {% 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 %}> <span>Upload</span> diff --git a/opentech/static_src/src/sass/public/components/_form.scss b/opentech/static_src/src/sass/public/components/_form.scss index ddee807bb..88cf3d5d0 100644 --- a/opentech/static_src/src/sass/public/components/_form.scss +++ b/opentech/static_src/src/sass/public/components/_form.scss @@ -53,6 +53,7 @@ // sass-lint:disable class-name-format &--image_field, + &--multi_file_field, &--file_field { @include button($color--light-blue, $color--dark-blue); max-width: 290px; -- GitLab