From 997b20fddb44bf97633cc602279796686c8140bf Mon Sep 17 00:00:00 2001 From: sermandm Date: Fri, 18 Apr 2025 11:30:21 +0200 Subject: [PATCH] =?UTF-8?q?choix=20pour=20la=20cr=C3=A9ation=20d'un=20util?= =?UTF-8?q?isateur=20ajout=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Form/UserType.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Form/UserType.php b/src/Form/UserType.php index 6059187..c9de90e 100644 --- a/src/Form/UserType.php +++ b/src/Form/UserType.php @@ -23,6 +23,10 @@ class UserType extends AbstractType ]) ->add('Phone', TextType::class) ->add('roles', ChoiceType::class, [ + 'choices' => [ + 'Secretaire' => 'ROLE_SECRETAIRE', + 'Chauffagiste' => 'ROLE_CHAUFFAGISTE', + ], 'multiple' => true, ]) ->add('password', TextType::class)