{% extends 'teamer/layout.html.twig' %} {% block title %}Meine Bewerbungen{% endblock %} {% block content %}

Meine offenen Bewerbungen

{% for application in pagination %} {% set assignment = application.assignment %}
{{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }} {{ assignment.destination.product }}
{{ icon('calendar', 'w-5 h-5 shrink-0') }} {{ assignment.effectivePeriod.start|date('d.m.Y') }} - {{ assignment.effectivePeriod.end|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 %}
{% if application.status == constant('App\\Entity\\Application::STATUS_REJECTED') %} {% set icon = 'close' %} {% set class = 'bg-gray-100 text-gray-800 hover:bg-gray-50' %} {% set url = path('app_teamer_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) %} {% set label = 'Bewerbung abgelehnt' %} {% else %} {% set icon = 'hourglass' %} {% set class = 'bg-yellow-100 text-yellow-800 hover:bg-yellow-50' %} {% set url = path('app_teamer_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) %} {% set label = 'in Bearbeitung' %} {% endif %} {{ icon(icon, 'w-4 h-4 shrink-0') }} {{ label }}
{% if teamer.bookmarks.contains(assignment) %} {{ icon('star', 'w-5 h-5 text-yellow-500 absolute top-0 right-0 mt-2 mr-2') }} {% endif %}
{% else %} Keine Einträge... {% endfor %}
{{ knp_pagination_render(pagination, 'paginator/sliding_boxes.html.twig') }} {% endblock %}