56 lines
1.9 KiB
HTML
56 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
||
{% block title %}Neue Fahrt – PBT{% endblock %}
|
||
{% block content %}
|
||
<div class="card">
|
||
<h2>Neue Fahrt erfassen</h2>
|
||
<form method="post">
|
||
<div class="field">
|
||
<label for="verkehrsmittel">Verkehrsmittel<span class="required">*</span></label>
|
||
<select id="verkehrsmittel" name="verkehrsmittel" required>
|
||
{% for option in verkehrsmittel_optionen %}
|
||
<option value="{{ option }}">{{ option }}</option>
|
||
{% endfor %}
|
||
</select>
|
||
</div>
|
||
|
||
<div class="field">
|
||
<label for="linie">Linie</label>
|
||
<input type="text" id="linie" name="linie" placeholder="z.B. S3, Bus 10">
|
||
</div>
|
||
|
||
<div class="field">
|
||
<label for="von">Von<span class="required">*</span></label>
|
||
<input type="text" id="von" name="von" required>
|
||
</div>
|
||
|
||
<div class="field">
|
||
<label for="nach">Nach<span class="required">*</span></label>
|
||
<input type="text" id="nach" name="nach" required>
|
||
</div>
|
||
|
||
<div class="field">
|
||
<label for="datum">Datum<span class="required">*</span></label>
|
||
<input type="date" id="datum" name="datum" value="{{ heute }}" required>
|
||
</div>
|
||
|
||
<div class="field">
|
||
<label for="bewertung">Bewertung<span class="required">*</span></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>
|
||
</div>
|
||
|
||
<div class="field">
|
||
<label for="kommentar">Kommentar</label>
|
||
<textarea id="kommentar" name="kommentar" rows="3"></textarea>
|
||
</div>
|
||
|
||
<button type="submit">Speichern</button>
|
||
</form>
|
||
</div>
|
||
{% endblock %}
|