[#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
def main_value_name
:value
end
private
def string_value

View file

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

View file

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