2019-01-30 17:54:05 +01:00
|
|
|
<!DOCTYPE html>
|
2022-12-08 20:41:30 +01:00
|
|
|
<html lang="en" data-theme="light">
|
2019-01-30 17:54:05 +01:00
|
|
|
<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>
|
2019-02-13 21:40:23 +01:00
|
|
|
<style>
|
|
|
|
body {
|
2022-12-08 20:41:30 +01:00
|
|
|
max-width: 54em;
|
2019-02-13 21:40:23 +01:00
|
|
|
}
|
|
|
|
</style>
|
2019-01-30 17:54:05 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
2022-12-08 20:41:30 +01:00
|
|
|
<main class="container">
|
2019-01-30 17:54:05 +01:00
|
|
|
<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>
|
2019-01-30 17:54:05 +01:00
|
|
|
|
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>
|
2019-01-30 18:37:09 +01:00
|
|
|
|
2022-12-08 20:41:30 +01:00
|
|
|
</div>
|
2019-01-30 17:54:05 +01:00
|
|
|
<h2>Zie hieronder de lijst van personen die een pannenkoek willen</h2>
|
2022-12-08 20:41:30 +01:00
|
|
|
<table>
|
|
|
|
<thead>
|
2019-02-13 21:40:23 +01:00
|
|
|
<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>
|
2019-02-13 21:40:23 +01:00
|
|
|
</tr>
|
|
|
|
{% for person in people[1:] %}
|
2019-01-30 17:54:05 +01:00
|
|
|
<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>
|
2019-02-13 23:29:58 +01:00
|
|
|
<td>
|
2022-12-08 20:41:30 +01:00
|
|
|
<form action="/status_update" method="POST">
|
|
|
|
<input type="hidden" name="name" value="{{ person.get_name() }}">
|
2019-02-13 23:29:58 +01:00
|
|
|
<input type="submit" value="Update">
|
|
|
|
</form>
|
|
|
|
</td>
|
2019-01-30 17:54:05 +01:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2022-12-08 20:41:30 +01:00
|
|
|
</tbody>
|
2019-01-30 17:54:05 +01:00
|
|
|
</table>
|
2022-12-08 20:41:30 +01:00
|
|
|
</main>
|
2019-01-30 17:54:05 +01:00
|
|
|
</body>
|
2019-02-13 21:40:23 +01:00
|
|
|
</html>
|