htmx single page application + work
This commit is contained in:
parent
7a70163e76
commit
73e019de9a
10 changed files with 150 additions and 58 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue