init
This commit is contained in:
commit
ce1095bb24
27 changed files with 621 additions and 0 deletions
27
app/templates/fahrerverwaltung.html
Normal file
27
app/templates/fahrerverwaltung.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Fahrerverwaltung</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
||||
<script src="{{ url_for('static', filename='js/fahrer.js') }}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Fahrer verwalten</h2>
|
||||
<form id="fahrerForm">
|
||||
<div id="fahrerListe">
|
||||
{% for f in fahrer %}
|
||||
<div class="fahrer-eintrag">
|
||||
<label>Fahrer {{ loop.index }}:
|
||||
<input type="text" name="name" value="{{ f.name }}">
|
||||
<input type="number" name="nummer" value="{{ f.nummer }}">
|
||||
<input type="color" name="farbe" value="{{ f.farbe }}">
|
||||
</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<button type="button" onclick="addFahrer()">+ Fahrer hinzufügen</button>
|
||||
<button type="submit" class="green">Speichern</button>
|
||||
</form>
|
||||
<a href="{{ url_for('main.index') }}">Zurück</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in a new issue