94 lines
4.9 KiB
Twig
94 lines
4.9 KiB
Twig
{% extends 'admin/layout.html.twig' %}
|
|
|
|
{% block title %}Bewerbungsübersicht{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 class="text-2xl font-bold pb-8">
|
|
Bewerbungsübersicht
|
|
</h1>
|
|
<div class="data-table-wrapper">
|
|
<div class="data-table-wrapper__inner">
|
|
<table class="data-table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Einsatz­zeitraum', 'destination.dateFrom') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Jobprofil', 'job_profile.name') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Destination', 'destination.product') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Bus', 'destination.pickup') }}
|
|
</th>
|
|
<th>
|
|
{{ knp_pagination_sortable(pagination, 'Bewerber*in', 'teamer.lastName') }}
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for application in pagination %}
|
|
{% set assignment = application.assignment %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
|
{{ assignment.effectivePeriod.start|date('d.m.Y') }} -
|
|
{{ assignment.effectivePeriod.end|date('d.m.Y') }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
|
{{ assignment.jobProfile.name }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
|
{{ assignment.destination.product }}
|
|
<br>
|
|
{{ assignment.destination.hotel }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
|
{{ assignment.pickup ? assignment.pickup|bpn_pickup_label : '-' }}
|
|
<br>
|
|
{{ assignment.effectivePickupDate ? assignment.effectivePickupDate|date('d.m.Y') : '' }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
|
{{ application.teamer }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<div class="flex items-center justify-end space-x-1">
|
|
{% if assignment.pickup %}
|
|
{% if application.matchesPickup %}
|
|
{{ icon('bus', 'w-5 h-5 text-green-500 shrink-0') }}
|
|
{% else %}
|
|
{{ icon('bus', 'w-5 h-5 text-red-500 shrink-0') }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% set requiredTrainingsCount = assignment.jobProfile.requiredTrainings|length %}
|
|
{% if requiredTrainingsCount > 0 %}
|
|
<span>{{ application.completedTrainingsCount }}/{{ requiredTrainingsCount }}</span>
|
|
{% endif %}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="6">
|
|
Keine Daten...
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{{ knp_pagination_render(pagination) }}
|
|
</div>
|
|
</div>
|
|
{% endblock %} |