[#1421] replace master/slave by primary/secondary

This commit is contained in:
Pierre de La Morinerie 2018-06-27 14:31:34 +02:00 committed by Frederic Merizen
parent dad3bc092b
commit 0cebf60c46
8 changed files with 84 additions and 84 deletions

View file

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