Commit 92de36a5 authored by Mat's avatar Mat

modifs mineures sur les FormTypes

parent 7643d09d
......@@ -6,6 +6,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use AssoBundle\Entity\Association;
......@@ -35,7 +36,7 @@ class AssociationType extends AbstractType
'class' => 'form-control form-control-sm',
),
));
$builder->add('email', TextType::class, array(
$builder->add('email', EmailType::class, array(
'label' => 'Adresse email',
'label_attr' => array('class' => 'label-common'),
'attr' => array(
......@@ -67,8 +68,8 @@ class AssociationType extends AbstractType
parent::configureOptions($resolver);
$resolver->setDefault('data_class', Association::class);
$resolver->setDefault('attr', array(
'class' => 'custom_input',
'novalidate' => true
'class' => 'association_type',
));
}
......
......@@ -72,9 +72,6 @@ class MembreType extends AbstractType
'attr' => array(
'placeholder' => "alias@email.tld",
'class' => 'form-control form-control-sm',
'min' => "5",
'max' => "100",
'step' => "1",
),
));
......@@ -104,8 +101,8 @@ class MembreType extends AbstractType
// ce sont les options par défaut, ne pas oublier celle-ci
$resolver->setDefault('attr', array(
'class' => 'custom_input',
'novalidate' => true
'class' => 'membre_type',
));
}
......
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