[#1421] Make label clickable for drop-down lists

This commit is contained in:
Frederic Merizen 2018-06-21 15:23:24 +02:00
parent 7b1e8c2110
commit 2f206af0d6
3 changed files with 9 additions and 1 deletions

View file

@ -35,6 +35,10 @@ class Champ < ApplicationRecord
end end
end end
def main_value_name
:value
end
private private
def string_value def string_value

View file

@ -24,6 +24,10 @@ class Champs::LinkedDropDownListChamp < Champ
pack_value pack_value
end end
def main_value_name
:master_value
end
private private
def pack_value def pack_value

View file

@ -1,4 +1,4 @@
= form.label :value do = form.label champ.main_value_name do
#{champ.libelle} #{champ.libelle}
- if champ.mandatory? - if champ.mandatory?
%span.mandatory * %span.mandatory *