work done
This commit is contained in:
parent
4b496a7d4f
commit
43fe9aea31
7 changed files with 125 additions and 30 deletions
|
@ -3,19 +3,42 @@
|
|||
<title>Neues Berichtsheft</title>
|
||||
{% include 'head.html' %}
|
||||
</head>
|
||||
<body>
|
||||
<h1>Neues Berichtsheft</h1>
|
||||
<body class="bg-gray-50 text-gray-800 font-sans min-h-screen flex flex-col items-center">
|
||||
|
||||
<p>{{ user.display_name }}</p>
|
||||
<p>Berichtsheft {{ year }} / {{ week }}</p>
|
||||
<p>Von: {{ start_date|date:"d.m.Y" }} bis: {{ end_date|date:"d.m.Y" }}</p>
|
||||
{% include 'header.html' with title="Neues Berichtsheft" %}
|
||||
|
||||
<form method="post">
|
||||
{{ form }}
|
||||
<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>
|
||||
|
||||
<button>Submit</button>
|
||||
<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 %}
|
||||
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
{% 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>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue