feat: delete accommodation bookings in draft

This commit is contained in:
Björn Fromme
2026-08-20 12:39:45 +02:00
parent 3db1850e4f
commit 98a303e941
4 changed files with 264 additions and 0 deletions
@@ -99,6 +99,13 @@
PDF herunterladen
</twig:dropdown:link>
{% endif %}
{# A record that has been in front of the customer gets discarded,
not removed — see DeleteController. #}
{% if booking.draft %}
<twig:dropdown:hxbutton url="{{ path('app_admin_accommodationbooking_delete', { 'id': booking.id, 'r': return_url() }) }}" warning>
löschen
</twig:dropdown:hxbutton>
{% endif %}
</twig:dropdown>
</td>
</tr>
@@ -0,0 +1,12 @@
{% extends 'htmx_confirmation_modal.html.twig' %}
{% block content %}
<div>
Möchtest du den Entwurf für <em>{{ booking.accommodation.name }}</em>
{% if booking.groupName %}(<em>{{ booking.groupName }}</em>){% endif %}
vom {{ booking.dateFrom | date('d.m.Y') }} {{ booking.dateTo | date('d.m.Y') }}
wirklich dauerhaft löschen?
</div>
{% endblock %}
{% block button_confirm %}löschen{% endblock %}