editable_champs: move the label near the checkbox

This commit is contained in:
Pierre de La Morinerie 2018-06-18 09:30:26 +00:00 committed by Mathieu Magnin
parent 43bbbacd59
commit 3ba5d654ba
4 changed files with 28 additions and 6 deletions

View file

@ -1,5 +1,6 @@
module ChampHelper
def is_not_header_nor_explication?(champ)
!['header_section', 'explication'].include?(champ.type_champ)
def has_label?(champ)
types_without_label = ['header_section', 'explication']
!types_without_label.include?(champ.type_champ)
end
end