style: adopt ep-design 1.2.0 dashboard cards and replace the hover dropdown with a click menu

This commit is contained in:
fromme committed 2026-11-13 12:25:24 +01:00
1 parent 99e6119311
commit 6dbc6efa78
16 files changed
+381 -554

No files matched your search

+44 -120
View File
@@ -2,126 +2,50 @@
{% block content %}
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
<div class="card p-4">
<h2 class="flex justify-between items-baseline gap-x-4 pb-3">
<span class="section-title">Neue Honorarverträge</span>
{% if newContractsCount > 0 or pendingContractsCount > 0 %}
<span class="text-muted">{{ newContractsCount }} neu, {{ pendingContractsCount }} in Bearbeitung</span>
{% endif %}
</h2>
<div class="max-h-64 overflow-y-auto overflow-x-hidden pr-3">
<ul class="divide-y divide-line">
{% for document in newContracts %}
{% set assignment = document.disposition.assignment %}
<li class="py-2 first:pt-0 last:pb-0">
<button type="button"
class="flex items-center space-x-1 truncate"
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 class="whitespace-nowrap">{{ assignment.destination.dateFrom|date('d.m.y') }} - {{ assignment.destination.dateTo|date('d.m.y') }}</span>
{% include '_partials/_dot.html.twig' %}
<span class="whitespace-nowrap">{{ assignment.destination.hotel }}</span>
</button>
</li>
{% else %}
<li class="py-2 first:pt-0 last:pb-0">
-
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="card p-4">
<h2 class="flex justify-between items-baseline gap-x-4 pb-3">
<span class="section-title">Neue Honorarnoten</span>
{% if newInvoicesCount > 0 or pendingInvoicesCount > 0 %}
<span class="text-muted">{{ newInvoicesCount }} neu, {{ pendingInvoicesCount }} in Bearbeitung</span>
{% endif %}
</h2>
<div class="max-h-64 overflow-y-auto overflow-x-hidden pr-3">
<ul class="divide-y divide-line">
{% for document in newInvoices %}
{% set assignment = document.disposition.assignment %}
<li class="py-2 first:pt-0 last:pb-0">
<button type="button"
class="flex items-center space-x-1 truncate"
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>
<span class="whitespace-nowrap">{{ assignment.destination.dateFrom|date('d.m.y') }} - {{ assignment.destination.dateTo|date('d.m.y') }}</span>
{% include '_partials/_dot.html.twig' %}
<span class="whitespace-nowrap">{{ assignment.destination.hotel }}</span>
</button>
</li>
{% else %}
<li class="py-2 first:pt-0 last:pb-0">
-
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="card p-4">
<h2 class="section-title pb-3">
Neue Einteilungen
</h2>
<ul class="divide-y divide-line">
{% 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, 'r': return_url() }) }}"
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>
<twig:dashboard:widget title="Neue Honorarverträge"
meta="{{ newContractsCount > 0 or pendingContractsCount > 0 ? newContractsCount ~ ' neu, ' ~ pendingContractsCount ~ ' in Bearbeitung' }}"
emptyText="Keine neuen Honorarverträge."
:scroll="true">
{% for document in newContracts %}
{% set assignment = document.disposition.assignment %}
<twig:dashboard:entry icon="download"
hx-get="{{ path('app_administrative_document_check', {uuid: document.uuid, r: return_url()}) }}"
:parts="[document.owner.teamer.fullName(true), assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.destination.hotel]"/>
{% endfor %}
</twig:dashboard:widget>
<twig:dashboard:widget title="Neue Honorarnoten"
meta="{{ newInvoicesCount > 0 or pendingInvoicesCount > 0 ? newInvoicesCount ~ ' neu, ' ~ pendingInvoicesCount ~ ' in Bearbeitung' }}"
emptyText="Keine neuen Honorarnoten."
:scroll="true">
{% for document in newInvoices %}
{% set assignment = document.disposition.assignment %}
<twig:dashboard:entry icon="download"
hx-get="{{ path('app_administrative_document_check', {uuid: document.uuid, r: return_url()}) }}"
:parts="[document.owner.teamer.fullName(true), assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.destination.hotel]"/>
{% endfor %}
</twig:dashboard:widget>
<twig:dashboard:widget title="Neue Einteilungen" emptyText="Keine neuen Einteilungen.">
{% for disposition in dispositions %}
<twig:dashboard:entry icon="hand"
url="{{ path('app_administrative_assignment_detail', {uuid: disposition.assignment.uuid, r: return_url()}) }}">
{% include '_partials/_disposition_data.html.twig' with {disposition: disposition} %}
</twig:dashboard:entry>
{% endfor %}
</twig:dashboard:widget>
{% set overdueFeedbacksCount = overdueFeedbacks|length %}
<div class="card p-4">
<h2 class="flex justify-between items-baseline gap-x-4 pb-3">
<span class="section-title">Überfällige Feedbacks</span>
{% if overdueFeedbacksCount > 0 %}
<span class="text-muted">{{ overdueFeedbacksCount }} überfällig</span>
{% endif %}
</h2>
<div class="max-h-64 overflow-y-auto overflow-x-hidden pr-3">
<ul class="divide-y divide-line">
{% 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>
<twig:dashboard:widget title="Überfällige Feedbacks"
meta="{{ overdueFeedbacksCount > 0 ? overdueFeedbacksCount ~ ' überfällig' }}"
emptyText="Keine überfälligen Feedbacks."
:scroll="true">
{% for disposition in overdueFeedbacks %}
{% set assignment = disposition.assignment %}
<twig:dashboard:entry icon="feedback"
url="{{ path('app_administrative_feedback_provide', {uuid: disposition.uuid, r: return_url()}) }}"
:parts="[disposition.teamer, assignment.destination, assignment.jobProfile ? assignment.jobProfile.name]"/>
{% endfor %}
</twig:dashboard:widget>
</div>
{% endblock %}