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>