feat: extend teamer dashboard

This commit is contained in:
Björn Fromme
2023-12-12 18:04:01 +01:00
parent 8ff59b3068
commit b5781df8d9
16 changed files with 286 additions and 30 deletions
@@ -16,7 +16,6 @@
<div class="lg:col-span-3">
{{ form_row(form.destination) }}
</div>
{{ form_row(form.status) }}
{{ form_row(form.availableDispositions) }}
<div>
<h4 class="font-bold pb-2">
+12 -8
View File
@@ -3,12 +3,14 @@
{% 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">
<h2 class="font-bold text-lg pb-2">
Neue Bewerbungen
</h2>
<h3 class="font-bold pb-2">
{{ newApplicationsCount }} neu, {{ pendingApplicationsCount }} in Bearbeitung
</h3>
{% if newApplicationsCount > 0 or pendingApplicationsCount > 0 %}
<h3 class="font-bold pb-2">
{{ newApplicationsCount }} neu, {{ pendingApplicationsCount }} in Bearbeitung
</h3>
{% endif %}
<ul class="divide-y divide-gray-200">
{% for application in applications %}
{% set assignment = application.assignment %}
@@ -32,12 +34,14 @@
</ul>
</div>
<div class="bg-gray-100 border border-gray-200 rounded-md px-4 py-2">
<h2 class="font-bold text-lg">
<h2 class="font-bold text-lg pb-2">
Neue Dokumente
</h2>
<h3 class="font-bold pb-2">
{{ newDocumentsCount }} neu {{ pendingDocumentsCount }} in Bearbeitung
</h3>
{% 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">
@@ -23,9 +23,8 @@
Gesamtnote
</th>
<th>
Kommentar
Kommentar öffentlich/intern
</th>
<th></th>
</tr>
</thead>
<tbody>
@@ -40,25 +39,25 @@
</td>
<td>
{% if disposition.feedback %}
{{ disposition.feedback.averageRating }}
{{ (disposition.feedback.averageRating/100)|format_number({fraction_digit: 2}) }}
{% else %}
-
{% endif %}
</td>
<td>
{% if disposition.feedback %}
<div class="truncate">
<div class="divide-y">
<div class="pb-2">
{{ disposition.feedback.comment|default('-') }}
</div>
<div class="pt-2">
{{ disposition.feedback.commentInternal|default('-') }}
</div>
</div>
{% else %}
-
{% endif %}
</td>
<td>
<button>
{{ icon('feedback') }}
</button>
</td>
</tr>
{% else %}
<td colspan="7">