Merge pull request #5644 from tchak/fix-mandatory-linked-champs
Add mandatory * to secondary value
This commit is contained in:
commit
045501ae50
1 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,10 @@
|
||||||
{ required: champ.mandatory? },
|
{ required: champ.mandatory? },
|
||||||
{ data: { secondary_options: champ.secondary_options } }
|
{ data: { secondary_options: champ.secondary_options } }
|
||||||
%span
|
%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,
|
= form.select :secondary_value,
|
||||||
champ.secondary_options[champ.primary_value],
|
champ.secondary_options[champ.primary_value],
|
||||||
{ required: champ.mandatory? },
|
{ required: champ.mandatory? },
|
||||||
|
|
Loading…
Reference in a new issue