feat: sort applications by creation timestamp by default

This commit is contained in:
Björn Fromme
2026-08-17 17:18:42 +02:00
parent 31149fdd13
commit 25f5840085
2 changed files with 9 additions and 3 deletions
@@ -35,8 +35,8 @@ class IndexController extends AbstractController
$request->query->getInt('page', 1),
$request->query->getInt('limit', 50),
[
'defaultSortFieldName' => 'destination.dateFrom',
'defaultSortDirection' => 'asc',
'defaultSortFieldName' => 'application.createdAt',
'defaultSortDirection' => 'desc',
]
);
+7 -1
View File
@@ -49,6 +49,9 @@
<th>
{{ knp_pagination_sortable(pagination, 'Bus', 'destination.pickup') }}
</th>
<th>
{{ knp_pagination_sortable(pagination, 'erstellt am', 'application.createdAt') }}
</th>
<th>
{{ knp_pagination_sortable(pagination, 'Bewerber:in', 'teamer.lastName') }}
</th>
@@ -96,6 +99,9 @@
-
{% endif %}
</td>
<td>
{{ application.createdAt | date('d.m.Y, H:i') }}
</td>
<td>
<a href="{{ path('app_administrative_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
{{ application.teamer }}
@@ -137,4 +143,4 @@
{{ knp_pagination_render(pagination) }}
</div>
</div>
{% endblock %}
{% endblock %}