Possibilité d'afficher ou non une section pour un utilisateur.

This commit is contained in:
Xavier J 2016-10-12 11:54:17 +02:00
parent fe6f6ebad3
commit 1696d0a159
4 changed files with 42 additions and 14 deletions

View file

@ -0,0 +1,6 @@
%h4{style:'margin-left:15px;'}
= champ.libelle
- if champ.mandatory?
= '*'
%input{type: 'hidden', name:"champs['#{champ.id}']", id: "champs_#{champ.id}", value: ''}
%input{type: 'checkbox', style:'margin-left: 15px;', name:"champs['#{champ.id}']", id: "champs_#{champ.id}", checked: ('checked' if champ.value == 'on')}