[#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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def main_value_name
|
||||||
|
:value
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def string_value
|
def string_value
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 *
|
||||||
|
|
Loading…
Reference in a new issue