From a55be55c6ac5e7abccab79965dcf94750b123ea4 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 29 Sep 2020 13:30:05 +0200 Subject: [PATCH] Add mandatory * to secondary value --- .../editable_champs/_linked_drop_down_list.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/shared/dossiers/editable_champs/_linked_drop_down_list.html.haml b/app/views/shared/dossiers/editable_champs/_linked_drop_down_list.html.haml index 569f03a85..8f1a154e4 100644 --- a/app/views/shared/dossiers/editable_champs/_linked_drop_down_list.html.haml +++ b/app/views/shared/dossiers/editable_champs/_linked_drop_down_list.html.haml @@ -4,7 +4,10 @@ { required: champ.mandatory? }, { data: { secondary_options: champ.secondary_options } } %span - = form.label :secondary_value, "Valeur secondaire dépendant de la première", class: 'hidden' + = form.label :secondary_value, class: 'hidden' do + Valeur secondaire dépendant de la première + - if champ.mandatory? + %span.mandatory * = form.select :secondary_value, champ.secondary_options[champ.primary_value], { required: champ.mandatory? },