Add mandatory * to secondary value
This commit is contained in:
parent
5fd41bbfd9
commit
a55be55c6a
1 changed files with 4 additions and 1 deletions
|
@ -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? },
|
||||
|
|
Loading…
Reference in a new issue