Add missing templates
Deploy PBT / deploy (push) Successful in 14s

This commit is contained in:
2026-09-09 20:24:05 +02:00
parent b26bc9c34f
commit d8576dc539
5 changed files with 182 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
{% extends "base.html" %}
{% block title %}Neue Fahrt PBT{% endblock %}
{% block content %}
<h2>Neue Fahrt erfassen</h2>
<form method="post">
<label for="verkehrsmittel">Verkehrsmittel</label>
<select id="verkehrsmittel" name="verkehrsmittel" required>
{% for option in verkehrsmittel_optionen %}
<option value="{{ option }}">{{ option }}</option>
{% endfor %}
</select>
<label for="linie">Linie (optional)</label>
<input type="text" id="linie" name="linie" placeholder="z.B. S3, Bus 10">
<label for="von">Von</label>
<input type="text" id="von" name="von" required>
<label for="nach">Nach</label>
<input type="text" id="nach" name="nach" required>
<label for="datum">Datum</label>
<input type="date" id="datum" name="datum" value="{{ heute }}" required>
<label for="bewertung">Bewertung (15)</label>
<select id="bewertung" name="bewertung" required>
<option value="5">★★★★★ Sehr gut</option>
<option value="4">★★★★☆ Gut</option>
<option value="3" selected>★★★☆☆ Okay</option>
<option value="2">★★☆☆☆ Schlecht</option>
<option value="1">★☆☆☆☆ Sehr schlecht</option>
</select>
<label for="kommentar">Kommentar (optional)</label>
<textarea id="kommentar" name="kommentar" rows="3"></textarea>
<button type="submit">Speichern</button>
</form>
{% endblock %}