87 lines
4.2 KiB
Twig
87 lines
4.2 KiB
Twig
{% extends 'administrative/layout.html.twig' %}
|
|
|
|
{% block content %}
|
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
|
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
|
<h2 class="font-bold text-lg pb-2">
|
|
Neue Dokumente
|
|
</h2>
|
|
{% if newDocumentsCount > 0 or pendingDocumentsCount > 0 %}
|
|
<h3 class="font-bold pb-2">
|
|
{{ newDocumentsCount }} neu {{ pendingDocumentsCount }} in Bearbeitung
|
|
</h3>
|
|
{% endif %}
|
|
<ul class="divide-y divide-gray-200">
|
|
{% for document in documents %}
|
|
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
|
<button type="button"
|
|
class="flex items-center space-x-1"
|
|
hx-get="{{ path('app_administrative_document_check', { 'uuid': document.uuid, 'r': return_url() }) }}"
|
|
hx-target="body"
|
|
hx-swap="beforeend">
|
|
{{ icon('download', 'w-4 h-4 shrink-0') }}
|
|
<span>{{ document.owner.teamer.fullName(true) }}</span>
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<span>{{ document.typeLabel }}</span>
|
|
</button>
|
|
</li>
|
|
{% else %}
|
|
<li class="py-2 first:pt-0 last:pb-0">
|
|
-
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
|
<h2 class="font-bold text-lg pb-2">
|
|
Neue Einteilungen
|
|
</h2>
|
|
<ul class="divide-y divide-gray-200">
|
|
{% for disposition in dispositions %}
|
|
{% set assignment = disposition.assignment %}
|
|
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
|
<a href="{{ path('app_administrative_assignment_detail', { 'uuid': assignment.uuid }) }}"
|
|
class="flex items-center space-x-1">
|
|
{{ icon('hand', 'w-4 h-4 shrink-0') }}
|
|
{% include '_partials/_disposition_data.html.twig' with { 'disposition': disposition } %}
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="py-2 first:pt-0 last:pb-0">
|
|
-
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
|
<h2 class="font-bold text-lg pb-2">
|
|
überfällige Feedbacks
|
|
</h2>
|
|
<ul class="divide-y divide-gray-200">
|
|
{% for disposition in overdueFeedbacks %}
|
|
{% set assignment = disposition.assignment %}
|
|
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
|
<a href="{{ path('app_administrative_feedback_provide', { 'uuid': disposition.uuid, 'r': return_url() }) }}"
|
|
class="flex items-center space-x-1">
|
|
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
|
|
<span class="whitespace-nowrap">{{ disposition.teamer }}</span>
|
|
{% if assignment.destination %}
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<span class="whitespace-nowrap">{{ assignment.destination }}</span>
|
|
{% endif %}
|
|
{% if assignment.jobProfile %}
|
|
{% include '_partials/_dot.html.twig' %}
|
|
<span class="whitespace-nowrap">{{ assignment.jobProfile.name }}</span>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li class="py-2 first:pt-0 last:pb-0">
|
|
-
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|