Frontend: display and behavior of pickUserOrMe form field

This commit is contained in:
2025-03-10 19:19:51 +01:00
parent fe6949ea26
commit ec5c4d51b3
5 changed files with 135 additions and 9 deletions

View File

@@ -14,6 +14,7 @@ namespace Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters;
use Chill\MainBundle\Export\FilterInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Form\Type\PickUserDynamicType;
use Chill\MainBundle\Form\Type\PickUserOrMeDynamicType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;
use Chill\PersonBundle\Export\Declarations;
@@ -66,9 +67,12 @@ class ReferrerFilter implements FilterInterface
public function buildForm(FormBuilderInterface $builder)
{
$builder
->add('accepted_referrers', PickUserDynamicType::class, [
->add('accepted_referrers', PickUserOrMeDynamicType::class, [
'multiple' => true,
])
/* ->add('accepted_referrers', PickUserDynamicType::class, [
'multiple' => true,
])*/
->add('date_calc', PickRollingDateType::class, [
'label' => 'export.filter.course.by_referrer.Computation date for referrer',
'required' => true,