work done
This commit is contained in:
parent
4b496a7d4f
commit
43fe9aea31
7 changed files with 125 additions and 30 deletions
|
@ -3,17 +3,36 @@
|
|||
<title> Berichtsheft {{ report.num }} </title>
|
||||
{% include 'head.html' %}
|
||||
</head>
|
||||
<body>
|
||||
<h1> Berichtsheft {{ report.num }} </h1>
|
||||
|
||||
<p> Berichtsheft {{ report.year }} / {{ report.week }} </p>
|
||||
|
||||
<p> Is Approved ? {{ report.is_approved }} </p>
|
||||
|
||||
{% for key, value in report.content.items %}
|
||||
|
||||
<p> {{ key }} : {{ value }} </p>
|
||||
|
||||
{% endfor %}
|
||||
</body>
|
||||
<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 %}
|
||||
|
||||
<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">
|
||||
Berichtsheft <span class="font-semibold">{{ report.year }}</span> / <span class="font-semibold">{{ report.week }}</span>
|
||||
</p>
|
||||
<p class="text-gray-700">
|
||||
Is Approved?
|
||||
<span class="{% if report.is_approved %}text-green-500 font-semibold{% else %}text-red-500 font-semibold{% endif %}">
|
||||
{{ report.is_approved }}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<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">
|
||||
{% 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>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue