Explication: add field and template

This commit is contained in:
Simon Lehericey 2017-03-13 15:02:05 +01:00
parent ec0092fb3c
commit 176092c256
3 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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,

View file

@ -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'