Add mandatory * to secondary value

This commit is contained in:
Paul Chavard 2020-09-29 13:30:05 +02:00 committed by Keirua (Rebase PR Action)
parent 5fd41bbfd9
commit a55be55c6a

View file

@ -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? },