Add type de champs email and phone

This commit is contained in:
Xavier J 2016-06-06 16:17:19 +02:00
parent 9ac95345c1
commit 3513b16888
4 changed files with 63 additions and 1 deletions

View file

@ -46,7 +46,7 @@
placeholder: champ.libelle,
id: "champs_#{champ.id}",
value: champ.value,
type:"#{champ.type_champ}",
type: champ.type_champ,
'data-provide' => ('datepicker' if champ.type_champ == 'datetime'),
'data-date-format' => ('dd/mm/yyyy' if champ.type_champ == 'datetime')}