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',
|
||||
departements: 'departements',
|
||||
engagement: 'engagement',
|
||||
header_section: 'header_section'
|
||||
header_section: 'header_section',
|
||||
explication: 'explication'
|
||||
}
|
||||
|
||||
belongs_to :procedure
|
||||
|
|
|
@ -41,6 +41,8 @@
|
|||
- elsif champ.type_champ == 'departements'
|
||||
= render partial: 'users/description/champs/departements', locals: { champ: champ }
|
||||
|
||||
- elsif champ.type_champ == 'explication'
|
||||
|
||||
- else
|
||||
%input.form-control{name:"champs['#{ champ.id }']",
|
||||
placeholder: champ.libelle,
|
||||
|
|
|
@ -21,4 +21,5 @@ fr:
|
|||
regions: 'Régions'
|
||||
departements: 'Départements'
|
||||
engagement: 'Engagement'
|
||||
header_section: 'Titre de section'
|
||||
header_section: 'Titre de section'
|
||||
explication: 'Explication'
|
||||
|
|
Loading…
Reference in a new issue