2024-12-02 16:49:45 +01:00
|
|
|
<html>
|
2024-12-04 09:37:01 +01:00
|
|
|
<head>
|
|
|
|
<title>Neues Berichtsheft</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-50 text-gray-800 font-sans min-h-screen flex flex-col items-center">
|
2024-12-02 16:49:45 +01:00
|
|
|
|
2024-12-04 16:36:57 +01:00
|
|
|
{% include 'header.html' with title="Neues Berichtsheft" %}
|
2024-12-02 16:49:45 +01:00
|
|
|
|
2024-12-04 16:36:57 +01:00
|
|
|
<main class="flex-grow w-full max-w-4xl mx-auto p-6 bg-white shadow-lg rounded-lg mt-6">
|
|
|
|
<div class="mb-6">
|
|
|
|
<p class="text-lg font-medium">{{ user.display_name }}</p>
|
|
|
|
<p class="text-gray-600">
|
|
|
|
Berichtsheft <span class="font-semibold">{{ year }}</span> / <span class="font-semibold">{{ week }}</span>
|
|
|
|
</p>
|
|
|
|
<p class="text-gray-600">
|
|
|
|
Von: <span class="font-semibold">{{ start_date|date:"d.m.Y" }}</span> bis: <span class="font-semibold">{{ end_date|date:"d.m.Y" }}</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
2024-12-02 16:49:45 +01:00
|
|
|
|
2024-12-04 16:36:57 +01:00
|
|
|
<form method="post" class="space-y-4">
|
|
|
|
|
|
|
|
{% for field in form %}
|
|
|
|
<div class="mb-4">
|
|
|
|
<label for="{{ field.id_for_label }}">
|
|
|
|
{{ field.label|safe }}
|
|
|
|
</label>
|
|
|
|
{{ field }}
|
|
|
|
{% if field.errors %}
|
|
|
|
<p class="text-red-500 text-sm">{{ field.errors|join:", " }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2024-12-02 16:49:45 +01:00
|
|
|
|
2024-12-04 16:36:57 +01:00
|
|
|
{% csrf_token %}
|
|
|
|
<button
|
|
|
|
type="submit"
|
|
|
|
class="w-full bg-red-600 text-white py-2 px-4 rounded-lg shadow hover:bg-red-700 focus:ring focus:ring-red-400">
|
|
|
|
Submit
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</main>
|
2024-12-04 09:37:01 +01:00
|
|
|
</body>
|
2024-12-02 16:49:45 +01:00
|
|
|
</html>
|