htmx single page application + work

This commit is contained in:
JMARyA 2024-12-05 17:03:42 +01:00
parent 7a70163e76
commit 73e019de9a
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
10 changed files with 150 additions and 58 deletions

View file

@ -1,13 +1,4 @@
<html>
<head>
<title>Azube</title>
{% include 'head.html' %}
</head>
<body class="bg-gray-100 min-h-screen">
{% include 'header.html' with title="Deine Berichtshefte" center=False %}
<div class="bg-gray-100 min-h-screen">
{{ title|safe }}
{% if late_reports > 1 %}
@ -33,9 +24,11 @@
{% for report in reports %}
{% if forloop.first %} {% if report.week != week_now %}
<a href="/write" class="{{ style.card }} flex items-center justify-center" title="Neues Berichtsheft">
<button class="{{ style.card }} flex items-center justify-center" title="Neues Berichtsheft"
hx-get="/write" hx-target="#main_content" hx-push-url="true" hx-swap="innerHTML"
>
<span class="text-9xl font-bold"> + </span>
</a>
</button>
{% endif %} {% endif %}
{% include 'component/report.html' with report=report %}
@ -50,5 +43,3 @@
</div>
</div>
</body>
</html>