Commit d162b14e authored by Mat's avatar Mat
Browse files

champs country, c'était un exemple intéressant

on garde mais désactive
parent 7623c8e0
......@@ -7,7 +7,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\CountryType;
//use Symfony\Component\Form\Extension\Core\Type\CountryType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
......@@ -25,6 +25,7 @@ class MembreType extends AbstractType
/** @var Membre $data */
/*
$data = $builder->getData();
// UTILE !!
......@@ -40,6 +41,7 @@ class MembreType extends AbstractType
));
}
// ^^ une condition pour éviter des erreurs
*/
$builder->add('prenom', TextType::class, array(
......
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