pannenkoekenwachtrij/templates/home.html

87 lines
2.9 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
2022-12-08 20:41:30 +01:00
<html lang="en" data-theme="light">
<head>
2022-12-08 20:41:30 +01:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css">
<title>Pannenkoekenwachtrij</title>
<style>
body {
2022-12-08 20:41:30 +01:00
max-width: 54em;
}
</style>
</head>
<body>
2022-12-08 20:41:30 +01:00
<main class="container">
<h1>Welkom bij de pannenkoekenwachtrij</h1>
2022-12-08 20:41:30 +01:00
<div class="grid">
<form action="/add_person" method="POST">
<label for="name">
Naam van de volgende
<input type="text" id="name" name="name"></label>
<label for="remark">
Specifieke opmerkingen
<input type="text" id="remark" name="remark">
</label>
<p><input type="submit" value="Persoon toevoegen"></p>
</form>
2022-12-08 20:41:30 +01:00
<form action="/status_update" method="POST">
<input type="hidden" name="index" value="0">
<p><input type="submit" value="Update First Person"></p>
</form>
2022-12-08 20:41:30 +01:00
</div>
<h2>Zie hieronder de lijst van personen die een pannenkoek willen</h2>
2022-12-08 20:41:30 +01:00
<table>
<thead>
<tr>
2022-12-08 20:41:30 +01:00
<th>Name</th>
<th>Huidige status</th>
<th>Bestel tijd</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
2022-12-08 21:13:13 +01:00
<td colspan="4" style='text-align:center; vertical-align:middle; background-color: #dcdcdc'>Volgende
persoon
</td>
2022-12-08 20:41:30 +01:00
</tr>
{% for person in people[:1] %}
<tr>
<th>{{ person.get_name() + person.get_remark() }}</th>
<td>{{ person.get_status() }}</td>
<td>{{ person.order_time_humanized() if person.order_time else "Unknown" }}</td>
<td>
<form action="/status_update" method="POST">
<input type="hidden" name="name" value="{{ person.get_name() }}">
<input type="submit" value="Update">
</form>
</td>
</tr>
{% endfor %}
<tr>
2022-12-08 21:13:13 +01:00
<td colspan="4" style='text-align:center; vertical-align:middle; background-color: #dcdcdc'>Andere
personen
</td>
</tr>
{% for person in people[1:] %}
<tr>
2022-12-08 20:41:30 +01:00
<th>{{ person.get_name() + person.get_remark() }}</th>
<td>{{ person.get_status() }}</td>
<td>{{ person.order_time_humanized() if person.order_time else "Unknown" }}</td>
<td>
2022-12-08 20:41:30 +01:00
<form action="/status_update" method="POST">
<input type="hidden" name="name" value="{{ person.get_name() }}">
<input type="submit" value="Update">
</form>
</td>
</tr>
{% endfor %}
2022-12-08 20:41:30 +01:00
</tbody>
</table>
2022-12-08 20:41:30 +01:00
</main>
</body>
</html>