82 lines
2.8 KiB
HTML
82 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-theme="light">
|
|
<head>
|
|
<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 {
|
|
max-width: 54em;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="container">
|
|
<h1>Welkom bij de pannenkoekenwachtrij</h1>
|
|
<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>
|
|
|
|
<form action="/status_update" method="POST">
|
|
<input type="hidden" name="index" value="0">
|
|
<p><input type="submit" value="Update First Person"></p>
|
|
</form>
|
|
|
|
</div>
|
|
<h2>Zie hieronder de lijst van personen die een pannenkoek willen</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Huidige status</th>
|
|
<th>Bestel tijd</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="4" style='text-align:center; vertical-align:middle'>Volgende persoon</td>
|
|
</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>
|
|
<td colspan="4" style='text-align:center; vertical-align:middle'>Andere personen</td>
|
|
</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 %}
|
|
</tbody>
|
|
</table>
|
|
</main>
|
|
</body>
|
|
</html>
|