Explication: add field and template
This commit is contained in:
parent
ec0092fb3c
commit
176092c256
3 changed files with 6 additions and 2 deletions
|
@ -16,7 +16,8 @@ class TypeDeChamp < ActiveRecord::Base
|
||||||
regions: 'regions',
|
regions: 'regions',
|
||||||
departements: 'departements',
|
departements: 'departements',
|
||||||
engagement: 'engagement',
|
engagement: 'engagement',
|
||||||
header_section: 'header_section'
|
header_section: 'header_section',
|
||||||
|
explication: 'explication'
|
||||||
}
|
}
|
||||||
|
|
||||||
belongs_to :procedure
|
belongs_to :procedure
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
- elsif champ.type_champ == 'departements'
|
- elsif champ.type_champ == 'departements'
|
||||||
= render partial: 'users/description/champs/departements', locals: { champ: champ }
|
= render partial: 'users/description/champs/departements', locals: { champ: champ }
|
||||||
|
|
||||||
|
- elsif champ.type_champ == 'explication'
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%input.form-control{name:"champs['#{ champ.id }']",
|
%input.form-control{name:"champs['#{ champ.id }']",
|
||||||
placeholder: champ.libelle,
|
placeholder: champ.libelle,
|
||||||
|
|
|
@ -21,4 +21,5 @@ fr:
|
||||||
regions: 'Régions'
|
regions: 'Régions'
|
||||||
departements: 'Départements'
|
departements: 'Départements'
|
||||||
engagement: 'Engagement'
|
engagement: 'Engagement'
|
||||||
header_section: 'Titre de section'
|
header_section: 'Titre de section'
|
||||||
|
explication: 'Explication'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue