set phonenumber fields to TelType

This commit is contained in:
Julien Fastré 2018-08-20 21:35:53 +02:00
parent 9f0d8e53ab
commit ca445f11c5

View File

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