129 lines
6.2 KiB
HTML
129 lines
6.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.5">
|
|
<title>Pannenkoekenwachtrij</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/tuicss@2.1.1/dist/tuicss.min.css" rel="stylesheet"/>
|
|
<style>
|
|
.tui-window {
|
|
width: 100%;
|
|
}
|
|
|
|
.col {
|
|
width: 100%;
|
|
}
|
|
|
|
.row {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
td, th {
|
|
text-align: center;
|
|
}
|
|
|
|
.tui-table tbody tr td {
|
|
padding-bottom: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="tui-bg-green-black">
|
|
<div style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%">
|
|
<div class="container" style="width: 100%">
|
|
<div class="row">
|
|
<div class="col m12">
|
|
<div class="tui-window red-168">
|
|
<fieldset class="tui-fieldset">
|
|
Welkom bij de pannenkoekenwachtrij
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col m12">
|
|
<div class="tui-window red-168">
|
|
<fieldset class="tui-fieldset">
|
|
<form action="/add_person" method="POST">
|
|
<div class="row">
|
|
<div class="col m12" style="display: inline-flex">
|
|
Naam van de volgende:
|
|
<input class="tui-input" type="text" id="name" name="name" style="margin-left: 10px; flex: 1">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col m12" style="display: inline-flex">
|
|
Specifieke opmerkingen:
|
|
<input class="tui-input" type="text" id="remark" name="remark" style="margin-left: 10px; flex: 1">
|
|
</div>
|
|
</div>
|
|
<div class="row" style="margin-bottom: 10px">
|
|
<div class="col m12" style="display: inline-flex">
|
|
<input class="tui-button green-168" type="submit" value="Persoon toevoegen" style="flex: 1; margin-bottom: 0px;">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col m12">
|
|
<div class="tui-window red-168">
|
|
<fieldset class="tui-fieldset">
|
|
<form action="/status_update" method="POST">
|
|
<input type="hidden" name="index" value="0">
|
|
<input class="tui-button green-168" type="submit" value="Update First Person" style="width: 100%">
|
|
</form>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col m12">
|
|
<div class="tui-window red-168">
|
|
<fieldset class="tui-fieldset">
|
|
<h2>Zie hieronder de lijst van personen die een pannenkoek willen</h2>
|
|
<table class="tui-table" style="width: 100%">
|
|
<tbody>
|
|
<tr>
|
|
<td colspan="4" style="text-align:center; vertical-align:middle; padding-top: 20px">Volgende persoon</td>
|
|
</tr>
|
|
{% for person in people[:1] %}
|
|
<tr>
|
|
<td>{{ person.get_name() + person.get_remark() }}</td>
|
|
<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 class="tui-button green-168" 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>
|
|
<td>{{ person.get_name() + person.get_remark() }}</td>
|
|
<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 class="tui-button green-168" type="submit" value="Update">
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|