style: adopt ep-design 1.2.0 dashboard cards and replace the hover dropdown with a click menu
This commit is contained in:
1 parent
99e6119311
commit
6dbc6efa78
16 files changed
+381
-554
No files matched your search
+95
-287
@@ -3,304 +3,112 @@
|
||||
{% 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 Bewerbungen</span>
|
||||
{% if newApplicationsCount > 0 or pendingApplicationsCount > 0 %}
|
||||
<span class="text-muted">{{ newApplicationsCount }} neu, {{ pendingApplicationsCount }} in Bearbeitung</span>
|
||||
{% endif %}
|
||||
</h2>
|
||||
<ul class="divide-y divide-line">
|
||||
{% for application in applications %}
|
||||
{% set assignment = application.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') }}
|
||||
<span class="whitespace-nowrap">{{ application.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>
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span class="whitespace-nowrap">{{ assignment.jobProfile.name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="py-2 first:pt-0 last:pb-0">
|
||||
-
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<twig:dashboard:widget title="Neue Bewerbungen"
|
||||
meta="{{ newApplicationsCount > 0 or pendingApplicationsCount > 0 ? newApplicationsCount ~ ' neu, ' ~ pendingApplicationsCount ~ ' in Bearbeitung' }}"
|
||||
emptyText="Keine neuen Bewerbungen.">
|
||||
{% for application in applications %}
|
||||
{% set assignment = application.assignment %}
|
||||
<twig:dashboard:entry icon="hand"
|
||||
url="{{ path('app_administrative_assignment_detail', {uuid: assignment.uuid, r: return_url()}) }}"
|
||||
:parts="[application.teamer.fullName(true), assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.destination.hotel, assignment.jobProfile.name]"/>
|
||||
{% endfor %}
|
||||
</twig:dashboard:widget>
|
||||
|
||||
<div class="card p-4">
|
||||
<h2 class="section-title pb-3">
|
||||
Neue Einteilungen
|
||||
</h2>
|
||||
<ul class="divide-y divide-line">
|
||||
{% for disposition in newDispositions %}
|
||||
{% 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 Einteilungen" emptyText="Keine neuen Einteilungen.">
|
||||
{% for disposition in newDispositions %}
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<div class="card p-4">
|
||||
<h2 class="flex justify-between items-baseline gap-x-4 pb-3">
|
||||
<span class="section-title">Neue Führerscheine</span>
|
||||
{% if newDriverLicensesCount > 0 %}
|
||||
<span class="text-muted">{{ newDriverLicensesCount }} neu</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 newDriverLicenses %}
|
||||
<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_teamer_driver_license_check', { 'uuid': document.uuid }) }}"
|
||||
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">{{ document.createdAt|date('d.m.y') }}</span>
|
||||
</button>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="py-2 first:pt-0 last:pb-0">
|
||||
-
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<twig:dashboard:widget title="Neue Führerscheine"
|
||||
meta="{{ newDriverLicensesCount > 0 ? newDriverLicensesCount ~ ' neu' }}"
|
||||
emptyText="Keine neuen Führerscheine."
|
||||
:scroll="true">
|
||||
{% for document in newDriverLicenses %}
|
||||
<twig:dashboard:entry icon="download"
|
||||
hx-get="{{ path('app_administrative_teamer_driver_license_check', {uuid: document.uuid}) }}"
|
||||
:parts="[document.owner.teamer.fullName(true), document.createdAt|date('d.m.y')]"/>
|
||||
{% endfor %}
|
||||
</twig:dashboard:widget>
|
||||
|
||||
<div class="card p-4">
|
||||
<h2 class="section-title pb-3">
|
||||
Neue Einsätze
|
||||
</h2>
|
||||
<ul class="divide-y divide-line">
|
||||
{% for assignment in assignments %}
|
||||
<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.destination.dateFrom|date('d.m.y') }} - {{ assignment.destination.dateTo|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">{{ assignment.owner.fullName(true) }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="py-2 first:pt-0 last:pb-0">
|
||||
-
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<twig:dashboard:widget title="Neue Einsätze" emptyText="Keine neuen Einsätze.">
|
||||
{% for assignment in assignments %}
|
||||
<twig:dashboard:entry icon="calendar"
|
||||
url="{{ path('app_administrative_assignment_detail', {uuid: assignment.uuid, r: return_url()}) }}"
|
||||
:parts="[assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.jobProfile.name, assignment.owner.fullName(true)]"/>
|
||||
{% endfor %}
|
||||
</twig:dashboard:widget>
|
||||
|
||||
<div class="card p-4">
|
||||
<h2 class="section-title pb-3">
|
||||
Neue Verfügbarkeiten
|
||||
</h2>
|
||||
<ul class="divide-y divide-line">
|
||||
{% for availability in availabilities %}
|
||||
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
||||
<a href="{{ path('app_admin_teamer_availability', { 'uuid': availability.owner.uuid, 'r': return_url() }) }}"
|
||||
class="flex items-center space-x-1">
|
||||
{{ icon('calendar', 'w-4 h-4 shrink-0') }}
|
||||
<span class="whitespace-nowrap">{{ availability.owner.fullName(true) }}</span>
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span class="whitespace-nowrap">{{ availability.dateFrom|date('d.m.y') }} - {{ availability.dateTo|date('d.m.y') }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="py-2 first:pt-0 last:pb-0">
|
||||
-
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<twig:dashboard:widget title="Neue Verfügbarkeiten" emptyText="Keine neuen Verfügbarkeiten.">
|
||||
{% for availability in availabilities %}
|
||||
<twig:dashboard:entry icon="calendar"
|
||||
url="{{ path('app_admin_teamer_availability', {uuid: availability.owner.uuid, r: return_url()}) }}"
|
||||
:parts="[availability.owner.fullName(true), availability.dateFrom|date('d.m.y') ~ ' - ' ~ availability.dateTo|date('d.m.y')]"/>
|
||||
{% endfor %}
|
||||
</twig:dashboard:widget>
|
||||
|
||||
<div class="card p-4">
|
||||
<h2 class="flex justify-between items-baseline gap-x-4 pb-3">
|
||||
<span class="section-title">Neue Feedbacks</span>
|
||||
{% if pendingFeedbacksCount > 0 %}
|
||||
<span class="text-muted">{{ pendingFeedbacksCount }} freizugeben</span>
|
||||
{% endif %}
|
||||
</h2>
|
||||
<ul class="divide-y divide-line">
|
||||
{% for feedback in feedbacks %}
|
||||
<li class="py-2 first:pt-0 last:pb-0 overflow-x-hidden">
|
||||
<button type="button"
|
||||
hx-get="{{ path('app_admin_feedback_approve', { 'uuid': feedback.uuid }) }}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend" class="flex items-center space-x-1">
|
||||
{{ icon('feedback', 'w-4 h-4 shrink-0') }}
|
||||
<span class="whitespace-nowrap">{{ feedback.teamer }}</span>
|
||||
{% if feedback.destinationName %}
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span class="whitespace-nowrap">{{ feedback.destinationName }}</span>
|
||||
{% endif %}
|
||||
{% if feedback.jobProfileName %}
|
||||
{% include '_partials/_dot.html.twig' %}
|
||||
<span class="whitespace-nowrap">{{ feedback.jobProfileName }}</span>
|
||||
{% endif %}
|
||||
</button>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="py-2 first:pt-0 last:pb-0">
|
||||
-
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<twig:dashboard:widget title="Neue Feedbacks"
|
||||
meta="{{ pendingFeedbacksCount > 0 ? pendingFeedbacksCount ~ ' freizugeben' }}"
|
||||
emptyText="Keine Feedbacks freizugeben.">
|
||||
{% for feedback in feedbacks %}
|
||||
<twig:dashboard:entry icon="feedback"
|
||||
hx-get="{{ path('app_admin_feedback_approve', {uuid: feedback.uuid}) }}"
|
||||
:parts="[feedback.teamer, feedback.destinationName, feedback.jobProfileName]"/>
|
||||
{% 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>
|
||||
|
||||
{% set overdueContractsCount = overdueContracts|length %}
|
||||
<div class="card p-4">
|
||||
<h2 class="flex justify-between items-baseline gap-x-4 pb-3">
|
||||
<span class="section-title">Überfällige Honorarverträge</span>
|
||||
{% if overdueContractsCount > 0 %}
|
||||
<span class="text-muted">{{ overdueContractsCount }} ü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 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.destination.dateFrom|date('d.m.y') }} - {{ assignment.destination.dateTo|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>
|
||||
<twig:dashboard:widget title="Überfällige Honorarverträge"
|
||||
meta="{{ overdueContractsCount > 0 ? overdueContractsCount ~ ' überfällig' }}"
|
||||
emptyText="Keine überfälligen Honorarverträge."
|
||||
:scroll="true">
|
||||
{% for disposition in overdueContracts %}
|
||||
{% set assignment = disposition.assignment %}
|
||||
<twig:dashboard:entry icon="calendar"
|
||||
url="{{ path('app_administrative_assignment_detail', {uuid: assignment.uuid, r: return_url()}) }}"
|
||||
:parts="[assignment.destination.dateFrom|date('d.m.y') ~ ' - ' ~ assignment.destination.dateTo|date('d.m.y'), assignment.jobProfile.name, disposition.teamer.fullName(true)]"/>
|
||||
{% endfor %}
|
||||
</twig:dashboard:widget>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user