WIP change animator field to animator intern and animator extern

This commit is contained in:
2025-07-01 14:29:01 +02:00
parent e176319775
commit 4c3befe489
4 changed files with 45 additions and 88 deletions

View File

@@ -68,20 +68,15 @@ class EventType extends AbstractType
->add('moderator', PickUserDynamicType::class, [
'label' => 'Pick a moderator',
])
->add('animators', ChillCollectionType::class, [
'entry_type' => PickAnimatorType::class,
'entry_options' => [
'label' => false,
],
'allow_add' => true,
'allow_delete' => true,
'by_reference' => false,
'prototype' => true,
'label' => 'Animators',
'help' => 'Add users or third parties who will animate this event',
'attr' => [
'data-collection' => 'true', // For JS handling
],
->add('animatorsIntern', PickUserDynamicType::class, [
'multiple' => true,
'label' => 'Pick an internal animator',
'required' => false,
])
->add('animatorsExtern', PickThirdpartyDynamicType::class, [
'multiple' => true,
'label' => 'Pick an external animator',
'required' => false,
])
->add('budgetElements', ChillCollectionType::class, [
'entry_type' => AddEventBudgetElementType::class,