feat: delete accommodation bookings in draft
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user