feat: show and sort accommodation bookings by timestamp of last update
This commit is contained in:
1 parent
ff722b5cef
commit
a5f8d75caa
2 files changed
+3
-3
No files matched your search
@@ -52,7 +52,7 @@ class IndexController extends AbstractController
|
||||
$request->query->getInt('page', 1),
|
||||
$request->query->getInt('limit', 20),
|
||||
[
|
||||
'defaultSortFieldName' => 'booking.createdAt',
|
||||
'defaultSortFieldName' => 'booking.updatedAt',
|
||||
'defaultSortDirection' => 'DESC',
|
||||
]
|
||||
);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Eingang', 'booking.createdAt') }}
|
||||
{{ knp_pagination_sortable(pagination, 'Letzte Bearb.', 'booking.updatedAt') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Gruppenhaus', 'accommodation.name') }}
|
||||
@@ -45,7 +45,7 @@
|
||||
{% set edit_url = path('app_admin_accommodationbooking_edit', { 'id': booking.id, 'r': return_url() }) %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ edit_url }}">{{ booking.createdAt | date('d.m.Y, H:i') }}</a>
|
||||
<a href="{{ edit_url }}">{{ booking.updatedAt | date('d.m.Y, H:i') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ edit_url }}">{{ booking.accommodation.name }}</a>
|
||||
|
||||
Reference in new issue
Block a user