✨ fix user
This commit is contained in:
parent
9ecc72628c
commit
a71184f9f1
@ -5,9 +5,11 @@ declare(strict_types=1);
|
|||||||
namespace App\Form;
|
namespace App\Form;
|
||||||
|
|
||||||
use App\Entity\User;
|
use App\Entity\User;
|
||||||
|
use App\Enum\RoleEnum;
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\EmailType;
|
use Symfony\Component\Form\Extension\Core\Type\EmailType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\EnumType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
|
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
@ -18,9 +20,16 @@ class UserAdminType extends AbstractType
|
|||||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||||
{
|
{
|
||||||
$builder
|
$builder
|
||||||
|
->add('fullname', EmailType::class, [
|
||||||
|
'label' => 'Nom complet',
|
||||||
|
])
|
||||||
->add('email', EmailType::class, [
|
->add('email', EmailType::class, [
|
||||||
'label' => 'Adresse email',
|
'label' => 'Adresse email',
|
||||||
])
|
])
|
||||||
|
->add('folderRole', EnumType::class, [
|
||||||
|
'label' => 'Role du dossier',
|
||||||
|
'class' => RoleEnum::class,
|
||||||
|
])
|
||||||
->add('role', ChoiceType::class, [
|
->add('role', ChoiceType::class, [
|
||||||
'label' => 'Rôle',
|
'label' => 'Rôle',
|
||||||
'choices' => [
|
'choices' => [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user