WIP change animator field

This commit is contained in:
2025-06-19 13:35:17 +02:00
parent 5d810b4230
commit e176319775
7 changed files with 272 additions and 14 deletions

View File

@@ -221,9 +221,6 @@ final class EventController extends AbstractController
{
$role = 'CHILL_EVENT_CREATE';
/**
* @var Center $centers
*/
$centers = $this->authorizationHelper->getReachableCenters($this->getUser(), $role);
if (1 === \count($centers)) {
@@ -243,7 +240,7 @@ final class EventController extends AbstractController
->add('center_id', EntityType::class, [
'class' => Center::class,
'choices' => $centers,
'placeholder' => '',
'placeholder' => $this->translator->trans('Pick a center'),
'label' => 'To which centre should the event be associated ?',
])
->add('submit', SubmitType::class, [