42 lines
979 B
PHP
42 lines
979 B
PHP
<?php
|
|
|
|
namespace App\Form;
|
|
|
|
use App\Core\Form\UserType as BaseUserType;
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
|
|
|
class UserType extends BaseUserType
|
|
{
|
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|
{
|
|
parent::buildForm($builder, $options);
|
|
|
|
$builder->add(
|
|
'isManager',
|
|
CheckboxType::class,
|
|
[
|
|
'label' => 'Coordinateur⋅trice',
|
|
'required' => false,
|
|
'attr' => [
|
|
],
|
|
'constraints' => [
|
|
],
|
|
]
|
|
);
|
|
|
|
$builder->add(
|
|
'isTreasurer',
|
|
CheckboxType::class,
|
|
[
|
|
'label' => 'Trésorier⋅ière',
|
|
'required' => false,
|
|
'attr' => [
|
|
],
|
|
'constraints' => [
|
|
],
|
|
]
|
|
);
|
|
}
|
|
}
|