diff --git a/app/models/champ.rb b/app/models/champ.rb index f396e988c..67601b599 100644 --- a/app/models/champ.rb +++ b/app/models/champ.rb @@ -35,6 +35,10 @@ class Champ < ApplicationRecord end end + def main_value_name + :value + end + private def string_value diff --git a/app/models/champs/linked_drop_down_list_champ.rb b/app/models/champs/linked_drop_down_list_champ.rb index 6bd1f4f9f..aff0259f0 100644 --- a/app/models/champs/linked_drop_down_list_champ.rb +++ b/app/models/champs/linked_drop_down_list_champ.rb @@ -24,6 +24,10 @@ class Champs::LinkedDropDownListChamp < Champ pack_value end + def main_value_name + :master_value + end + private def pack_value diff --git a/app/views/shared/dossiers/editable_champs/_champ_label.html.haml b/app/views/shared/dossiers/editable_champs/_champ_label.html.haml index 8c1070299..6ba997ae9 100644 --- a/app/views/shared/dossiers/editable_champs/_champ_label.html.haml +++ b/app/views/shared/dossiers/editable_champs/_champ_label.html.haml @@ -1,4 +1,4 @@ -= form.label :value do += form.label champ.main_value_name do #{champ.libelle} - if champ.mandatory? %span.mandatory *