Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)
This commit is contained in:
@@ -12,11 +12,10 @@ namespace App\Form;
|
||||
use App\Form\Type\TeamType;
|
||||
use App\Form\Type\UserType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
class TimesheetMultiUserEditForm extends TimesheetAdminEditForm
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||
{
|
||||
$options['allow_begin_datetime'] = true;
|
||||
$options['allow_end_datetime'] = true;
|
||||
@@ -25,6 +24,7 @@ class TimesheetMultiUserEditForm extends TimesheetAdminEditForm
|
||||
parent::buildForm($builder, $options);
|
||||
|
||||
$builder->add('users', UserType::class, [
|
||||
'label' => 'users',
|
||||
'multiple' => true,
|
||||
'required' => false,
|
||||
]);
|
||||
@@ -34,9 +34,4 @@ class TimesheetMultiUserEditForm extends TimesheetAdminEditForm
|
||||
'required' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
parent::configureOptions($resolver);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user