[admin]: add select2 to Goal form type entity fields

This commit is contained in:
nobohan 2022-05-25 10:34:24 +02:00
parent da2c88c026
commit d6f1aa53dc

View File

@ -51,6 +51,7 @@ class GoalType extends AbstractType
'choice_label' => function (SocialAction $issue) { 'choice_label' => function (SocialAction $issue) {
return $this->translatableStringHelper->localize($issue->getTitle()); return $this->translatableStringHelper->localize($issue->getTitle());
}, },
'attr' => ['class' => 'select2 '],
]) ])
->add('results', EntityType::class, [ ->add('results', EntityType::class, [
@ -60,6 +61,7 @@ class GoalType extends AbstractType
'choice_label' => function (Result $r) { 'choice_label' => function (Result $r) {
return $this->translatableStringHelper->localize($r->getTitle()); return $this->translatableStringHelper->localize($r->getTitle());
}, },
'attr' => ['class' => 'select2 '],
]) ])
->add('desactivationDate', ChillDateType::class, [ ->add('desactivationDate', ChillDateType::class, [