feat: sort applications by creation timestamp by default
This commit is contained in:
@@ -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',
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user