ajout d'un label invisible pour le champ secondaire d'un menu déroulant lié
This commit is contained in:
parent
26b20b719f
commit
62591623f4
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
champ.primary_options,
|
||||
{ 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.select :secondary_value,
|
||||
champ.secondary_options[champ.primary_value],
|
||||
{ required: champ.mandatory? },
|
||||
|
|
Loading…
Reference in a new issue