feat: ajout des champs types

* email
* tel

refs #2
This commit is contained in:
Christophe 2024-03-29 10:41:01 +01:00
parent f78e914195
commit 7db67fb4f3

View file

@ -19,6 +19,7 @@ function inc_gamucontact_dist(){
'saisie' => 'input',
'options' => [
'nom' => 'email_contact',
'type' => 'email',
'label' => '<:gamucontact:votre_email:>',
'class' => 'w100',
'obligatoire' => 'oui',
@ -33,6 +34,7 @@ function inc_gamucontact_dist(){
'saisie' => 'input',
'options' => [
'nom' => 'telephone',
'type' => 'tel',
'label' => '<:gamucontact:votre_telephone:>',
'obligatoire' => lire_config('gamucontact/telephone_obligatoire') === 'oui' ? 'oui' : 'non',
]