demarches-normaliennes/app/views/new_gestionnaire/dossiers/champs/_checkbox.html.haml

10 lines
261 B
Text
Raw Normal View History

= render partial: 'new_gestionnaire/dossiers/champs/champ_label', locals: { champ: champ }
%input{ type: 'checkbox',
name: "champs['#{champ.id}']",
id: "champs_#{champ.id}",
2017-07-27 11:09:28 +02:00
checked: ('checked' if champ.value == 'on'),
required: champ.mandatory }
%br