Adding the js function categoryLinkParentChildSelect for center and scope

This commit is contained in:
Marc Ducobu 2016-03-24 10:45:03 +01:00
parent 2cb4ee8bb9
commit 9eed387285

View File

@ -80,8 +80,10 @@ class EventType extends AbstractType
->add('center', EntityType::class, array(
'class' => Center::class,
'choices' => $userReachableCenters,
'attr' => array('class' => 'select2 chill-category-link-parent'),
'choice_attr' => function (Center $center) {
return array(
'class' => ' chill-category-link-parent',
'data-link-category' => $center->getId()
);
},