mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-04 07:56:12 +00:00
Adding the js function categoryLinkParentChildSelect for center and scope
This commit is contained in:
parent
2cb4ee8bb9
commit
9eed387285
@ -80,8 +80,10 @@ class EventType extends AbstractType
|
|||||||
->add('center', EntityType::class, array(
|
->add('center', EntityType::class, array(
|
||||||
'class' => Center::class,
|
'class' => Center::class,
|
||||||
'choices' => $userReachableCenters,
|
'choices' => $userReachableCenters,
|
||||||
|
'attr' => array('class' => 'select2 chill-category-link-parent'),
|
||||||
'choice_attr' => function (Center $center) {
|
'choice_attr' => function (Center $center) {
|
||||||
return array(
|
return array(
|
||||||
|
'class' => ' chill-category-link-parent',
|
||||||
'data-link-category' => $center->getId()
|
'data-link-category' => $center->getId()
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user