From 31468aeae089bb8019d3de353e3eeb94d17ea4b3 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Fri, 4 Jun 2021 15:15:28 +0200 Subject: [PATCH] Using select2 for reason field inside activity form --- src/Bundle/ChillActivityBundle/Form/ActivityType.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Bundle/ChillActivityBundle/Form/ActivityType.php b/src/Bundle/ChillActivityBundle/Form/ActivityType.php index 0332173eb..7540d4872 100644 --- a/src/Bundle/ChillActivityBundle/Form/ActivityType.php +++ b/src/Bundle/ChillActivityBundle/Form/ActivityType.php @@ -188,6 +188,7 @@ class ActivityType extends AbstractType 'choice_label' => function (ActivityReason $activityReason) { return $this->translatableStringHelper->localize($activityReason->getName()); }, + 'attr' => array('class' => 'select2 '), 'query_builder' => function (EntityRepository $er) { return $er->createQueryBuilder('a') ->where('a.active = true');