88 lines
3.9 KiB
Twig
88 lines
3.9 KiB
Twig
{% extends 'layout_admin.html.twig' %}
|
|
|
|
{% block content %}
|
|
<h1 class="text-2xl font-bold pb-8">
|
|
Buchungsentwürfe
|
|
</h1>
|
|
<div class="data-table-wrapper">
|
|
<div class="data-table-wrapper__inner text-sm">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'erstellt am', 'booking_edit_draft.createdAt') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Vorgang', 'booking_edit_draft.bookingNumber') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Kundenaccount', 'user.email') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'aktualisiert am', 'booking_edit_draft.updatedAt') }}
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for draft in pagination %}
|
|
<tr>
|
|
<td>
|
|
{{ draft.createdAt | date('d.m.Y, H:i') }}
|
|
</td>
|
|
<td>
|
|
{{ draft.bookingNumber | default('-') }}
|
|
</td>
|
|
<td>
|
|
{{ draft.user.email | default('-') }}
|
|
</td>
|
|
<td>
|
|
{% if draft.updatedAt is not null and draft.updatedAt != draft.createdAt %}
|
|
{{ draft.updatedAt | date('d.m.Y, H:i') }}
|
|
{% else %}
|
|
-
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% embed '_partials/_dropdown.html.twig' %}
|
|
{% block content %}
|
|
<a href="{{ path('app_admin_bookingeditdraft_show', { 'id': draft.id, 'r': return_url() }) }}"
|
|
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
|
|
role="menuitem"
|
|
tabindex="-1">
|
|
Details
|
|
</a>
|
|
<a href="{{ path('app_admin_bookingeditdraft_export', { 'id': draft.id }) }}"
|
|
class="text-gray-700 hover:text-primary block px-4 py-2 text-sm"
|
|
role="menuitem"
|
|
tabindex="-1">
|
|
XLS-Export
|
|
</a>
|
|
<button type="button"
|
|
class="text-red-500 hover:text-primary block px-4 py-2 text-sm w-full text-left"
|
|
role="menuitem"
|
|
tabindex="-1"
|
|
hx-get="{{ path('app_admin_bookingeditdraft_delete', { 'id': draft.id, 'r': return_url() }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
löschen
|
|
</button>
|
|
{% endblock %}
|
|
{% endembed %}
|
|
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="5">
|
|
Keine Daten...
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{{ knp_pagination_render(pagination) }}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|