Add type de champ Engagement
This commit is contained in:
parent
d455b6f12d
commit
8fb76d1a6e
7 changed files with 19 additions and 4 deletions
8
app/views/users/description/champs/_engagement.html.haml
Normal file
8
app/views/users/description/champs/_engagement.html.haml
Normal file
|
@ -0,0 +1,8 @@
|
|||
%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')}
|
||||
%div{style:'margin-left: 5%; margin-right: 5%; text-align: justify; text-justify: inter-word;'}
|
||||
= champ.description.gsub(/\r\n/, '<br>').html_safe
|
Loading…
Add table
Add a link
Reference in a new issue