{% extends 'administrative/layout.html.twig' %} {% block title %}Einsatzübersicht{% endblock %} {% set status_labels = { draft: ['Entwurf', 'border-muted text-muted'], called_off: ['abgesagt', 'border-red-700 bg-red-50 text-red-900'], staffed: ['voll besetzt', 'border-emerald-700 bg-emerald-50 text-emerald-900'], partly_staffed: ['teilweise besetzt', 'border-amber-600 bg-amber-50 text-amber-950'], staffing: ['mit Bewerbungen', 'border-brand bg-brand-light text-brand-dark'], unstaffed: ['unbesetzt', 'border-muted text-muted'], } %} {% block content %} {% set status = status_labels[assignment.status] ?? status_labels[assignment.staffingStatus] ?? null %} {{ icon('arrow-left', 'w-4 h-4 shrink-0') }} zurück

Einsatz ID {{ assignment.id }}

{{ assignment.jobProfile.name }}

{{ assignment.destination.product }} · {{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}

{% if status %} {{ status[0] }} {% endif %} {% if is_granted('EDIT', assignment) %} {{ icon('edit', 'w-4 h-4 shrink-0') }} bearbeiten {% endif %}
{% include '_partials/_assignment_info_compact.html.twig' %}
{% if is_granted('ROLE_TEAM_ADMIN') %}

Bewerbungen {{ applications|length }}

{% for application in applications %} {% else %} {% endfor %}
Name Status Zustieg Wünsche Aktionen
{{ ('label.application.status.' ~ application.status)|trans }} {% if application.pickup %} {{ application.pickup|bpn_pickup_label }} {% else %} - {% endif %} {{ application.requests|default('-')|nl2br }}
{% if is_granted('DISPOSE', application) %} {% endif %} {% if is_granted('STATUS', application) %} {% endif %} {% if is_granted('DELETE', application) %} {% endif %}
Es liegen keine Bewerbungen vor.
{% endif %}

Einteilungen {{ dispositions|length }}

{% for disposition in dispositions %} {% else %} {% endfor %}
Name Status Zustieg Anmerkungen Absprachen Aktionen
{{ ('label.disposition.status.' ~ disposition.status)|trans }} {% if disposition.pickup %} {{ disposition.pickup|bpn_pickup_label }} {% else %} - {% endif %} {% if disposition.calledOffReason %} {{ disposition.calledOffReason|default('-')|nl2br }} {% else %} {{ disposition.remarks|default('-')|nl2br }} {% endif %} {{ disposition.specialAgreements|default('-')|nl2br }}
{% if is_granted('ADMIN_DOCUMENT_UPLOAD', disposition) %} {% endif %} {% if is_granted('CALL_OFF', disposition) %} {% endif %} {% if is_granted('DELETE', disposition) %} {% endif %}
Es gibt noch keine Einteilungen.
{% endblock %}