[#1421] Make label clickable for drop-down lists
This commit is contained in:
parent
7b1e8c2110
commit
2f206af0d6
3 changed files with 9 additions and 1 deletions
|
@ -35,6 +35,10 @@ class Champ < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def main_value_name
|
||||
:value
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def string_value
|
||||
|
|
|
@ -24,6 +24,10 @@ class Champs::LinkedDropDownListChamp < Champ
|
|||
pack_value
|
||||
end
|
||||
|
||||
def main_value_name
|
||||
:master_value
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def pack_value
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
= form.label :value do
|
||||
= form.label champ.main_value_name do
|
||||
#{champ.libelle}
|
||||
- if champ.mandatory?
|
||||
%span.mandatory *
|
||||
|
|
Loading…
Reference in a new issue