mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Using select2 for reason field inside activity form
This commit is contained in:
parent
e52c94aabd
commit
31468aeae0
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user