Feat: Make fees editable, duplicatable and add internal name

This commit is contained in:
Björn Fromme
2023-10-20 16:35:56 +02:00
parent 992bdcc46c
commit 9e9608e604
9 changed files with 205 additions and 5 deletions
@@ -38,13 +38,13 @@ class CreateController extends AbstractController
$this->addFlash('success', 'Das Honorar wurde angelegt');
$this->logger->info('Create fee', [
'fee' => $fee->getName(),
'fee' => $fee->getNameInternal(),
]);
$redirectUrl = $this->generateUrl('app_admin_system_fee_index');
$response->setCloseAndRedirect($redirectUrl);
} else {
$content = $this->renderView('admin/system/fee/create.html.twig', [
$content = $this->renderView('admin/system/fee/form.html.twig', [
'form' => $form
]);
$response->setContent($content);