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

@ -2,5 +2,3 @@
{ required: champ.mandatory? },
'on',
'off'
%br

View file

@ -1,5 +1,5 @@
.editable-champ
- if is_not_header_nor_explication?(champ)
.editable-champ{ class: "editable-champ-#{champ.type_champ}" }
- if has_label?(champ)
= render partial: 'shared/dossiers/editable_champs/champ_label', locals: { form: form, champ: champ, seen_at: defined?(seen_at) ? seen_at : nil }
= render partial: "shared/dossiers/editable_champs/#{champ.type_champ}",