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('page', 1),
|
||||||
$request->query->getInt('limit', 50),
|
$request->query->getInt('limit', 50),
|
||||||
[
|
[
|
||||||
'defaultSortFieldName' => 'destination.dateFrom',
|
'defaultSortFieldName' => 'application.createdAt',
|
||||||
'defaultSortDirection' => 'asc',
|
'defaultSortDirection' => 'desc',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,9 @@
|
|||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Bus', 'destination.pickup') }}
|
{{ knp_pagination_sortable(pagination, 'Bus', 'destination.pickup') }}
|
||||||
</th>
|
</th>
|
||||||
|
<th>
|
||||||
|
{{ knp_pagination_sortable(pagination, 'erstellt am', 'application.createdAt') }}
|
||||||
|
</th>
|
||||||
<th>
|
<th>
|
||||||
{{ knp_pagination_sortable(pagination, 'Bewerber:in', 'teamer.lastName') }}
|
{{ knp_pagination_sortable(pagination, 'Bewerber:in', 'teamer.lastName') }}
|
||||||
</th>
|
</th>
|
||||||
@@ -96,6 +99,9 @@
|
|||||||
-
|
-
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ application.createdAt | date('d.m.Y, H:i') }}
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ path('app_administrative_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
|
<a href="{{ path('app_administrative_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
|
||||||
{{ application.teamer }}
|
{{ application.teamer }}
|
||||||
@@ -137,4 +143,4 @@
|
|||||||
{{ knp_pagination_render(pagination) }}
|
{{ knp_pagination_render(pagination) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user