From 6086369ce525cc679c416db201a7e77d5a16e600 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 12 Feb 2025 16:54:30 +0100 Subject: [PATCH] feat: rename confirmation document to invoice --- src/Controller/Booking/DownloadController.php | 8 ++++---- templates/booking/index.html.twig | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Controller/Booking/DownloadController.php b/src/Controller/Booking/DownloadController.php index 883a193..deef808 100644 --- a/src/Controller/Booking/DownloadController.php +++ b/src/Controller/Booking/DownloadController.php @@ -31,10 +31,10 @@ class DownloadController extends AbstractController defaults: ['fileType' => 'documents'] )] #[Route( - path: '/bookings/{id}/confirmation', - name: 'app_booking_confirmation', + path: '/bookings/{id}/invoice', + name: 'app_booking_invoice', requirements: ['id' => '\d+'], - defaults: ['fileType' => 'confirmation'] + defaults: ['fileType' => 'invoice'] )] #[IsGranted("ROLE_USER")] public function documents(int $id, string $fileType, Request $request): Response @@ -47,7 +47,7 @@ class DownloadController extends AbstractController $type = match ($fileType) { 'documents' => 'Dokumentdruck', - 'confirmation' => 'Vorgangdruck', + 'invoice' => 'Vorgangdruck', }; $this->logger->info('Initiated document download', [ diff --git a/templates/booking/index.html.twig b/templates/booking/index.html.twig index fd30b89..af0279e 100644 --- a/templates/booking/index.html.twig +++ b/templates/booking/index.html.twig @@ -70,10 +70,10 @@ bearbeiten {% endif %} - - Bestätigung + Rechnung {% if booking.hasDocuments %}