Possibilité d'afficher ou non une section pour un utilisateur.
This commit is contained in:
parent
fe6f6ebad3
commit
1696d0a159
4 changed files with 42 additions and 14 deletions
6
app/views/users/description/champs/_checkbox.html.haml
Normal file
6
app/views/users/description/champs/_checkbox.html.haml
Normal 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')}
|
Loading…
Add table
Add a link
Reference in a new issue