2024-12-02 16:49:45 +01:00
|
|
|
<html>
|
2024-12-04 09:37:01 +01:00
|
|
|
<head>
|
|
|
|
<title>Azube</title>
|
2024-12-04 11:41:57 +01:00
|
|
|
{% include 'head.html' %}
|
2024-12-04 09:37:01 +01:00
|
|
|
</head>
|
2024-12-04 16:36:57 +01:00
|
|
|
<body class="bg-gray-100 min-h-screen">
|
|
|
|
|
|
|
|
{% include 'header.html' with title="Deine Berichtshefte" center=False %}
|
|
|
|
|
2024-12-04 11:41:57 +01:00
|
|
|
<div class="bg-gray-100 min-h-screen">
|
2024-12-02 16:49:45 +01:00
|
|
|
|
2024-12-04 11:41:57 +01:00
|
|
|
{% if late_reports > 1 %}
|
2024-12-04 16:36:57 +01:00
|
|
|
|
2024-12-04 11:41:57 +01:00
|
|
|
<div class="bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700 p-4 mr-10 ml-10 mt-6" role="alert">
|
|
|
|
<p class="font-bold"> Du bist nicht aktuell! </p>
|
|
|
|
<p> Du hast noch {{ late_reports }} Berichtshefte nachzuschreiben. </p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
2024-12-04 09:37:01 +01:00
|
|
|
{% if reports|length == 0 %}
|
|
|
|
|
2024-12-04 11:41:57 +01:00
|
|
|
<h3 class="text-xl justify-center flex m-10 p-5">wau, such empty!</h3>
|
2024-12-04 09:37:01 +01:00
|
|
|
|
2024-12-04 11:41:57 +01:00
|
|
|
<button onclick="location = '/write'" class="{{ style.red_btn }} justify-center">
|
2024-12-04 09:37:01 +01:00
|
|
|
Füge dein erstes Berichtsheft hinzu!
|
|
|
|
</button>
|
|
|
|
{% else %}
|
2024-12-02 16:49:45 +01:00
|
|
|
|
2024-12-04 09:37:01 +01:00
|
|
|
<div
|
2024-12-04 14:04:12 +01:00
|
|
|
class="mb-5 -mt-5 flex items-center justify-center grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5"
|
2024-12-04 09:37:01 +01:00
|
|
|
>
|
2024-12-02 16:49:45 +01:00
|
|
|
{% for report in reports %}
|
2024-12-03 15:15:45 +01:00
|
|
|
|
2024-12-04 11:41:57 +01:00
|
|
|
{% if forloop.first %} {% if report.week != week_now %}
|
|
|
|
<a href="/write" class="{{ style.card }} flex items-center justify-center" title="Neues Berichtsheft">
|
|
|
|
<span class="text-9xl font-bold"> + </span>
|
2024-12-04 09:37:01 +01:00
|
|
|
</a>
|
2024-12-04 11:41:57 +01:00
|
|
|
{% endif %} {% endif %}
|
|
|
|
|
|
|
|
{% include 'component/report.html' with report=report %}
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<div hx-get="/reports?page=2"
|
|
|
|
hx-trigger="revealed"
|
|
|
|
hx-swap="outerHTML">
|
|
|
|
|
|
|
|
{% endif %}
|
2024-12-03 15:15:45 +01:00
|
|
|
|
2024-12-04 09:37:01 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|