40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
{% 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 (1–5)</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 %}
|