Commit ca445f11 authored by Julien Fastré's avatar Julien Fastré

set phonenumber fields to TelType

parent 9f0d8e53
......@@ -28,7 +28,7 @@ use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\Extension\Core\Type\TelType;
use Chill\PersonBundle\Form\Type\GenderType;
use Chill\MainBundle\Form\Type\Select2CountryType;
use Chill\MainBundle\Form\Type\Select2LanguageType;
......@@ -81,11 +81,11 @@ class PersonType extends AbstractType
}
if ($this->config['phonenumber'] === 'visible') {
$builder->add('phonenumber', TextareaType::class, array('required' => false));
$builder->add('phonenumber', TelType::class, array('required' => false));
}
if ($this->config['mobilenumber'] === 'visible') {
$builder->add('mobilenumber', TextareaType::class, array('required' => false));
$builder->add('mobilenumber', TelType::class, array('required' => false));
}
if ($this->config['email'] === 'visible') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment