collections

This commit is contained in:
Benjamin Dalsass
2025-12-10 08:53:34 +01:00
parent 9543624a0d
commit 090925e28b
6 changed files with 108 additions and 18 deletions

View File

@@ -34,6 +34,7 @@ class CollectionFormType extends AbstractType
$resolver->setDefaults([
'button_label' => 'Add an item',
'allow_ordering' => false,
]);
}
@@ -43,6 +44,7 @@ class CollectionFormType extends AbstractType
parent::buildView($view, $form, $options);
$view->vars['button_label'] = $options['button_label'];
$view->vars['allow_ordering'] = $options['allow_ordering'];
}
}