htmx single page application + work
This commit is contained in:
parent
7a70163e76
commit
73e019de9a
10 changed files with 150 additions and 58 deletions
|
@ -1,14 +1,5 @@
|
|||
<html>
|
||||
<head>
|
||||
<title> Berichtsheft {{ report.num }} </title>
|
||||
{% include 'head.html' %}
|
||||
</head>
|
||||
<body class="bg-gray-50 text-gray-800 font-sans min-h-screen flex flex-col items-center">
|
||||
|
||||
{% with title="Berichtsheft "|add:report.num %}
|
||||
{% include 'header.html' with title="Berichtsheft" %}
|
||||
{% endwith %}
|
||||
|
||||
{{ title|safe }}
|
||||
|
||||
<main class="flex-grow w-full max-w-4xl mx-auto p-6 bg-white shadow-lg rounded-lg mt-6">
|
||||
<div class="mb-4">
|
||||
<p class="text-lg font-medium text-gray-700">
|
||||
|
@ -25,14 +16,13 @@
|
|||
<div class="border-t border-gray-200 mt-4 pt-4">
|
||||
<h2 class="text-lg font-medium text-gray-800 mb-2">Content:</h2>
|
||||
<dl class="space-y-2">
|
||||
{% load markdown %}
|
||||
{% for key, value in report.content.items %}
|
||||
<div class="flex justify-between items-start">
|
||||
<dt class="text-sm font-medium text-gray-600">{{ key }}</dt>
|
||||
<dd class="text-sm text-gray-800">{{ value }}</dd>
|
||||
<div class="justify-between items-start">
|
||||
<h4 class="text-sm font-medium text-gray-600">{{ key }}</h4>
|
||||
<span class="text-sm text-gray-800 mb-4">{{ value|markdown|safe }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue