fix: label in linked_drop_down

This commit is contained in:
simon lehericey 2022-10-05 18:14:04 +02:00 committed by LeSim
parent 3dc0ed7695
commit e86375046b

View file

@ -6,9 +6,9 @@
.secondary{ class: @champ.has_secondary_options_for_primary? ? '' : 'hidden' }
= @form.label :secondary_value, for: "#{@champ.input_id}-secondary" do
= @champ.drop_down_secondary_libelle.presence || "Valeur secondaire dépendant de la première"
- if @champ.type_de_champ.mandatory?
%span.mandatory *
- sanitize((@champ.drop_down_secondary_libelle.presence || "Valeur secondaire dépendant de la première") + (@champ.type_de_champ.mandatory? ? tag.span(' *', class: 'mandatory') : ''))
-# - if @champ.type_de_champ.mandatory?
-# %span.mandatory *
- if @champ.drop_down_secondary_description.present?
.notice{ id: "#{@champ.describedby_id}-secondary" }= string_to_html(@champ.drop_down_secondary_description)
= @form.select :secondary_value,