ajout d'un label invisible pour le champ secondaire d'un menu déroulant lié

This commit is contained in:
clemkeirua 2020-03-05 16:13:49 +01:00 committed by GitHub Action
parent 26b20b719f
commit 62591623f4

View file

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