feat: improve admin dashboard layout
This commit is contained in:
@@ -158,59 +158,71 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{% set overdueFeedbacksCount = overdueFeedbacks|length %}
|
||||||
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
||||||
<h2 class="font-bold text-lg pb-2">
|
<h2 class="flex justify-between pb-2">
|
||||||
überfällige Feedbacks
|
<span class="font-bold text-lg">Überfällige Feedbacks</span>
|
||||||
|
{% if overdueFeedbacksCount > 0 %}
|
||||||
|
<span>{{ overdueFeedbacksCount }} überfälllig</span>
|
||||||
|
{% endif %}
|
||||||
</h2>
|
</h2>
|
||||||
<ul class="divide-y divide-gray-200">
|
<div class="max-h-64 overflow-y-scroll">
|
||||||
{% for disposition in overdueFeedbacks %}
|
<ul class="divide-y divide-gray-200">
|
||||||
{% set assignment = disposition.assignment %}
|
{% for disposition in overdueFeedbacks %}
|
||||||
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
{% set assignment = disposition.assignment %}
|
||||||
<a href="{{ path('app_administrative_feedback_provide', { 'uuid': disposition.uuid, 'r': return_url() }) }}"
|
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
||||||
class="flex items-center space-x-1">
|
<a href="{{ path('app_administrative_feedback_provide', { 'uuid': disposition.uuid, 'r': return_url() }) }}"
|
||||||
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
|
class="flex items-center space-x-1">
|
||||||
<span class="whitespace-nowrap">{{ disposition.teamer }}</span>
|
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
|
||||||
{% if assignment.destination %}
|
<span class="whitespace-nowrap">{{ disposition.teamer }}</span>
|
||||||
{% include '_partials/_dot.html.twig' %}
|
{% if assignment.destination %}
|
||||||
<span class="whitespace-nowrap">{{ assignment.destination }}</span>
|
{% include '_partials/_dot.html.twig' %}
|
||||||
{% endif %}
|
<span class="whitespace-nowrap">{{ assignment.destination }}</span>
|
||||||
{% if assignment.jobProfile %}
|
{% 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>
|
||||||
|
{% set overdueContractsCount = overdueContracts|length %}
|
||||||
|
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
||||||
|
<h2 class="flex justify-between pb-2">
|
||||||
|
<span class="font-bold text-lg">Überfällige Honorarverträge</span>
|
||||||
|
{% if overdueContractsCount > 0 %}
|
||||||
|
<span>{{ overdueContractsCount }} überfälllig</span>
|
||||||
|
{% endif %}
|
||||||
|
</h2>
|
||||||
|
<div class="max-h-64 overflow-y-scroll">
|
||||||
|
<ul class="divide-y divide-gray-200">
|
||||||
|
{% for disposition in overdueContracts %}
|
||||||
|
{% 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, 'r': return_url() }) }}"
|
||||||
|
class="flex items-center space-x-1">
|
||||||
|
{{ icon('calendar', 'w-4 h-4 shrink-0') }}
|
||||||
|
<span class="whitespace-nowrap">{{ assignment.effectivePeriod.start|date('d.m.y') }} - {{ assignment.effectivePeriod.end|date('d.m.y') }}</span>
|
||||||
{% include '_partials/_dot.html.twig' %}
|
{% include '_partials/_dot.html.twig' %}
|
||||||
<span class="whitespace-nowrap">{{ assignment.jobProfile.name }}</span>
|
<span class="whitespace-nowrap">{{ assignment.jobProfile.name }}</span>
|
||||||
{% endif %}
|
{% include '_partials/_dot.html.twig' %}
|
||||||
</a>
|
<span class="whitespace-nowrap">{{ disposition.teamer.fullName(true) }}</span>
|
||||||
</li>
|
</a>
|
||||||
{% else %}
|
</li>
|
||||||
<li class="py-2 first:pt-0 last:pb-0">
|
{% else %}
|
||||||
-
|
<li class="py-2 first:pt-0 last:pb-0">
|
||||||
</li>
|
-
|
||||||
{% endfor %}
|
</li>
|
||||||
</ul>
|
{% endfor %}
|
||||||
</div>
|
</ul>
|
||||||
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
</div>
|
||||||
<h2 class="font-bold text-lg pb-2">
|
|
||||||
Überfällige Honorarverträge
|
|
||||||
</h2>
|
|
||||||
<ul class="divide-y divide-gray-200">
|
|
||||||
{% for disposition in overdueContracts %}
|
|
||||||
{% 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, 'r': return_url() }) }}"
|
|
||||||
class="flex items-center space-x-1">
|
|
||||||
{{ icon('calendar', 'w-4 h-4 shrink-0') }}
|
|
||||||
<span class="whitespace-nowrap">{{ assignment.effectivePeriod.start|date('d.m.y') }} - {{ assignment.effectivePeriod.end|date('d.m.y') }}</span>
|
|
||||||
{% include '_partials/_dot.html.twig' %}
|
|
||||||
<span class="whitespace-nowrap">{{ assignment.jobProfile.name }}</span>
|
|
||||||
{% include '_partials/_dot.html.twig' %}
|
|
||||||
<span class="whitespace-nowrap">{{ disposition.teamer.fullName(true) }}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% else %}
|
|
||||||
<li class="py-2 first:pt-0 last:pb-0">
|
|
||||||
-
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user