new theme!

This commit is contained in:
FKD13 2023-12-06 17:34:25 +01:00
parent baa3a02a15
commit d960a1413c
No known key found for this signature in database

View file

@ -1,86 +1,129 @@
<!DOCTYPE html> <!doctype html>
<html lang="en" data-theme="light"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1.5">
<link rel="stylesheet" href="https://unpkg.com/sakura.css/css/sakura.css" type="text/css">
<title>Pannenkoekenwachtrij</title> <title>Pannenkoekenwachtrij</title>
<link href="https://cdn.jsdelivr.net/npm/tuicss@2.1.1/dist/tuicss.min.css" rel="stylesheet"/>
<style> <style>
body { .tui-window {
max-width: 54em; width: 100%;
}
.col {
width: 100%;
}
.row {
margin-bottom: 20px;
}
td, th {
text-align: center;
}
.tui-table tbody tr td {
padding-bottom: 20px;
} }
</style> </style>
</head> </head>
<body> <body class="tui-bg-green-black">
<main class="container"> <div style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%">
<h1>Welkom bij de pannenkoekenwachtrij</h1> <div class="container" style="width: 100%">
<div class="grid"> <div class="row">
<form action="/add_person" method="POST"> <div class="col m12">
<label for="name"> <div class="tui-window red-168">
Naam van de volgende <fieldset class="tui-fieldset">
<input type="text" id="name" name="name"></label> Welkom bij de pannenkoekenwachtrij
<label for="remark"> </fieldset>
Specifieke opmerkingen </div>
<input type="text" id="remark" name="remark"> </div>
</label> </div>
<p><input type="submit" value="Persoon toevoegen"></p> <div class="row">
</form> <div class="col m12">
<div class="tui-window red-168">
<form action="/status_update" method="POST"> <fieldset class="tui-fieldset">
<input type="hidden" name="index" value="0"> <form action="/add_person" method="POST">
<p><input type="submit" value="Update First Person"></p> <div class="row">
</form> <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> </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; background-color: #dcdcdc'>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; background-color: #dcdcdc'>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> </body>
</html> </html>