Commit 05cd0b98 by Damien Moulard

admin création adhérent : prenom et nom obligatoire + choix groupe

parent bc69a8fa
......@@ -150,6 +150,15 @@ class AdherentAdmin extends AbstractAdmin
'with_latlon' => false
))
->end()
->with('Groupe', ['class' => 'col-md-5'])
->add('groupe', ChoiceType::class, array(
'required' => true,
'label' => 'Groupe local :',
'choices' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(Groupe::class)->findAll(),
'choice_label' => 'name',
'placeholder' => 'Choisir un groupe',
))
->end()
->end()
;
......
......@@ -38,11 +38,11 @@ class UserFormType extends AbstractType
))
->add('firstname', TextType::class, array(
'label' => 'Prénom',
'required' => false,
'required' => true,
))
->add('lastname', TextType::class, array(
'label' => 'Nom',
'required' => false,
'required' => true,
))
->add('phone', TextType::class, array(
'label' => 'Téléphone fixe :',
......
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