feat: rename confirmation document to invoice
This commit is contained in:
@@ -31,10 +31,10 @@ class DownloadController extends AbstractController
|
|||||||
defaults: ['fileType' => 'documents']
|
defaults: ['fileType' => 'documents']
|
||||||
)]
|
)]
|
||||||
#[Route(
|
#[Route(
|
||||||
path: '/bookings/{id}/confirmation',
|
path: '/bookings/{id}/invoice',
|
||||||
name: 'app_booking_confirmation',
|
name: 'app_booking_invoice',
|
||||||
requirements: ['id' => '\d+'],
|
requirements: ['id' => '\d+'],
|
||||||
defaults: ['fileType' => 'confirmation']
|
defaults: ['fileType' => 'invoice']
|
||||||
)]
|
)]
|
||||||
#[IsGranted("ROLE_USER")]
|
#[IsGranted("ROLE_USER")]
|
||||||
public function documents(int $id, string $fileType, Request $request): Response
|
public function documents(int $id, string $fileType, Request $request): Response
|
||||||
@@ -47,7 +47,7 @@ class DownloadController extends AbstractController
|
|||||||
|
|
||||||
$type = match ($fileType) {
|
$type = match ($fileType) {
|
||||||
'documents' => 'Dokumentdruck',
|
'documents' => 'Dokumentdruck',
|
||||||
'confirmation' => 'Vorgangdruck',
|
'invoice' => 'Vorgangdruck',
|
||||||
};
|
};
|
||||||
|
|
||||||
$this->logger->info('Initiated document download', [
|
$this->logger->info('Initiated document download', [
|
||||||
|
|||||||
@@ -70,10 +70,10 @@
|
|||||||
bearbeiten
|
bearbeiten
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ path('app_booking_confirmation', { 'id': booking.id }) }}"
|
<a href="{{ path('app_booking_invoice', { 'id': booking.id }) }}"
|
||||||
class="button bg-button button--small"
|
class="button bg-button button--small"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
Bestätigung
|
Rechnung
|
||||||
</a>
|
</a>
|
||||||
{% if booking.hasDocuments %}
|
{% if booking.hasDocuments %}
|
||||||
<a href="{{ path('app_booking_documents', { 'id': booking.id }) }}"
|
<a href="{{ path('app_booking_documents', { 'id': booking.id }) }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user