[#1421] replace master/slave by primary/secondary
This commit is contained in:
parent
dad3bc092b
commit
0cebf60c46
8 changed files with 84 additions and 84 deletions
|
@ -1,10 +1,10 @@
|
|||
- if champ.drop_down_list && champ.drop_down_list.options.any?
|
||||
- champ_id = champ.object_id
|
||||
= form.select :master_value,
|
||||
champ.master_options,
|
||||
= form.select :primary_value,
|
||||
champ.primary_options,
|
||||
{ required: champ.mandatory? },
|
||||
{ data: { "slave-options" => champ.slave_options, "master-id" => champ_id } }
|
||||
= form.select :slave_value,
|
||||
champ.slave_options[champ.master_value],
|
||||
{ data: { "secondary-options" => champ.secondary_options, "primary-id" => champ_id } }
|
||||
= form.select :secondary_value,
|
||||
champ.secondary_options[champ.primary_value],
|
||||
{ required: champ.mandatory? },
|
||||
{ data: { "slave-id" => champ_id } }
|
||||
{ data: { "secondary-id" => champ_id } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue