style: show the dashboard boxes as cards
This commit is contained in:
1 parent
7095456d36
commit
fa0ffcf636
4 files changed
+83
-83
No files matched your search
@@ -2,15 +2,15 @@
|
||||
|
||||
{% 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="flex justify-between pb-2">
|
||||
<span class="font-bold text-lg">Neue Honorarverträge</span>
|
||||
<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>{{ newContractsCount }} neu, {{ pendingContractsCount }} in Bearbeitung</span>
|
||||
<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-gray-200">
|
||||
<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">
|
||||
@@ -35,15 +35,15 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<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">Neue Honorarnoten</span>
|
||||
<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>{{ newInvoicesCount }} neu, {{ pendingInvoicesCount }} in Bearbeitung</span>
|
||||
<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-gray-200">
|
||||
<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">
|
||||
@@ -67,11 +67,11 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
|
||||
<h2 class="font-bold text-lg pb-2">
|
||||
<div class="card p-4">
|
||||
<h2 class="section-title pb-3">
|
||||
Neue Einteilungen
|
||||
</h2>
|
||||
<ul class="divide-y divide-gray-200">
|
||||
<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">
|
||||
@@ -89,15 +89,15 @@
|
||||
</ul>
|
||||
</div>
|
||||
{% set overdueFeedbacksCount = overdueFeedbacks|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 Feedbacks</span>
|
||||
<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>{{ overdueFeedbacksCount }} überfällig</span>
|
||||
<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-gray-200">
|
||||
<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">
|
||||
|
||||
Reference in new issue
Block a user