{% extends 'teamer/layout.html.twig' %} {% block title %}Einsatzübersicht{% endblock %} {% block content %}

Einsatz­übersicht

{% if filterDto.active %} Reset {% endif %}
{% for assignment in pagination %}
{{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }} {{ assignment.destination.product }}
{{ icon('calendar', 'w-5 h-5 shrink-0') }} {{ assignment.destination.dateFrom|date('d.m.Y') }} - {{ assignment.destination.dateTo|date('d.m.Y') }}
{{ icon('profile', 'w-5 h-5 shrink-0') }} {{ assignment.jobProfile.name }}
{{ icon('house', 'w-5 h-5 shrink-0') }} {{ assignment.destination.hotel }}
{% if assignment.pickup %} {% set pickup = assignment.destination.pickup(assignment.pickup) %}
{{ icon('bus', 'w-5 h-5 shrink-0') }} {{ pickup.city }}, {{ pickup.time }} Uhr
{% endif %}
{% set application = assignment.applications.first %} {% set disposition = assignment.activeDispositionByTeamer(teamer) %} {% if application %} {% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %} {{ icon('close', 'w-4 h-4 shrink-0') }} Bewerbung abgelehnt {% else %} {{ icon('hourglass', 'w-4 h-4 shrink-0') }} in Bearbeitung {% endif %} {% elseif disposition %} {{ icon('check', 'w-4 h-4 shrink-0') }} eingeteilt {% elseif is_granted('APPLY', assignment) %} {{ icon('info', 'w-4 h-4 shrink-0') }} weitere Infos {% endif %}
{% set isBookmarked = teamer.bookmarks.contains(assignment) %} {{ icon('star', html_classes('w-5 h-5', { 'text-yellow-500': isBookmarked, 'text-gray-200': not isBookmarked } )) }}
{% else %} Keine Einträge... {% endfor %}
{{ knp_pagination_render(pagination, 'paginator/sliding_boxes.html.twig') }} {% endblock %}