WIP: Improve assignment information display
This commit is contained in:
@@ -12,10 +12,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Einsatzbeginn', 'destination.dateFrom') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Einsatzende', 'destination.dateTo') }}
|
||||
{{ knp_pagination_sortable(pagination, 'Einsatz­zeitraum', 'destination.dateFrom') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Jobprofil', 'job_profile.name') }}
|
||||
@@ -24,7 +21,7 @@
|
||||
{{ knp_pagination_sortable(pagination, 'Destination', 'destination.product') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Busbegleitung ab', 'destination.pickup') }}
|
||||
{{ knp_pagination_sortable(pagination, 'Bus', 'destination.pickup') }}
|
||||
</th>
|
||||
<th>
|
||||
{{ knp_pagination_sortable(pagination, 'Bewerber*in', 'teamer.lastName') }}
|
||||
@@ -37,34 +34,54 @@
|
||||
{% set assignment = application.assignment %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ assignment.destination.dateFrom|date('d.m.Y') }}
|
||||
<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>
|
||||
{{ assignment.destination.dateTo|date('d.m.Y') }}
|
||||
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
||||
{{ assignment.jobProfile.name }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ assignment.jobProfile.name }}
|
||||
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
||||
{{ assignment.destination.product }}
|
||||
<br>
|
||||
{{ assignment.destination.hotel }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ assignment.destination.product }}
|
||||
<br>
|
||||
{{ assignment.destination.hotel }}
|
||||
<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>
|
||||
{{ assignment.pickup ? assignment.pickup|bpn_pickup_label : '-' }}
|
||||
<a href="{{ path('app_admin_assignment_detail', { 'uuid': assignment.uuid }) }}">
|
||||
{{ application.teamer }}
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ application.teamer }}
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" class="btn">
|
||||
Welche Funktion?
|
||||
</button>
|
||||
<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="7">
|
||||
<td colspan="6">
|
||||
Keine Daten...
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user