43 lines
2.2 KiB
Twig
43 lines
2.2 KiB
Twig
<div class="grid sm:grid-cols-2 md:grid-cols-3 gap-4 pb-4">
|
|
{% for disposition in pagination %}
|
|
{% set assignment = disposition.assignment %}
|
|
<div class="relative flex flex-col justify-between rounded-md border border-gray-200 bg-gray-100 p-4">
|
|
<div class="flex flex-col space-y-2 pb-2">
|
|
<div class="flex items-start space-x-2">
|
|
{{ icon('flag-' ~ assignment.destination.country, 'w-5 h-5 shrink-0') }}
|
|
<span class="flex-1 font-bold">{{ assignment.destination.product }}</span>
|
|
</div>
|
|
<div class="flex items-start space-x-2">
|
|
{{ icon('calendar', 'w-5 h-5 shrink-0') }}
|
|
<span class="flex-1">{{ assignment.effectivePeriod.start|date('d.m.Y') }} - {{ assignment.effectivePeriod.end|date('d.m.Y') }}</span>
|
|
</div>
|
|
<div class="flex items-start space-x-2">
|
|
{{ icon('profile', 'w-5 h-5 shrink-0') }}
|
|
<span class="flex-1">{{ assignment.jobProfile.name }}</span>
|
|
</div>
|
|
<div class="flex items-start space-x-2">
|
|
{{ icon('house', 'w-5 h-5 shrink-0') }}
|
|
<span class="flex-1">{{ assignment.destination.hotel }}</span>
|
|
</div>
|
|
{% if assignment.pickup %}
|
|
{% set pickup = assignment.destination.pickup(assignment.pickup) %}
|
|
{% if pickup is not null %}
|
|
<div class="flex items-start space-x-2">
|
|
{{ icon('bus', 'w-5 h-5 shrink-0') }}
|
|
<span>{{ pickup.city }}, {{ pickup.time }} Uhr</span>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
<a href="{{ path('app_teamer_disposition_detail', { 'uuid': disposition.uuid, 'r': return_url() }) }}"
|
|
class="btn btn--small flex items-center space-x-2">
|
|
{{ icon('info', 'w-4 h-4 shrink-0') }}
|
|
<span>Details</span>
|
|
</a>
|
|
</div>
|
|
{% else %}
|
|
Keine Einträge...
|
|
{% endfor %}
|
|
</div>
|
|
{{ knp_pagination_render(pagination, 'paginator/sliding_boxes.html.twig') }}
|