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">
<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"> <form action="/add_person" method="POST">
<label for="name"> <div class="row">
Naam van de volgende <div class="col m12" style="display: inline-flex">
<input type="text" id="name" name="name"></label> Naam van de volgende:
<label for="remark"> <input class="tui-input" type="text" id="name" name="name" style="margin-left: 10px; flex: 1">
Specifieke opmerkingen </div>
<input type="text" id="remark" name="remark"> </div>
</label> <div class="row">
<p><input type="submit" value="Persoon toevoegen"></p> <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> </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"> <form action="/status_update" method="POST">
<input type="hidden" name="index" value="0"> <input type="hidden" name="index" value="0">
<p><input type="submit" value="Update First Person"></p> <input class="tui-button green-168" type="submit" value="Update First Person" style="width: 100%">
</form> </form>
</fieldset>
</div> </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> <h2>Zie hieronder de lijst van personen die een pannenkoek willen</h2>
<table> <table class="tui-table" style="width: 100%">
<thead>
<tr>
<th>Name</th>
<th>Huidige status</th>
<th>Bestel tijd</th>
<th></th>
</tr>
</thead>
<tbody> <tbody>
<tr> <tr>
<td colspan="4" style='text-align:center; vertical-align:middle; background-color: #dcdcdc'>Volgende <td colspan="4" style="text-align:center; vertical-align:middle; padding-top: 20px">Volgende persoon</td>
persoon
</td>
</tr> </tr>
{% for person in people[:1] %} {% for person in people[:1] %}
<tr> <tr>
<th>{{ person.get_name() + person.get_remark() }}</th> <td>{{ person.get_name() + person.get_remark() }}</td>
<td>{{ person.get_status() }}</td> <td>{{ person.get_status() }}</td>
<td>{{ person.order_time_humanized() if person.order_time else "Unknown" }}</td> <td>{{ person.order_time_humanized() if person.order_time else "Unknown" }}</td>
<td> <td>
<form action="/status_update" method="POST"> <form action="/status_update" method="POST">
<input type="hidden" name="name" value="{{ person.get_name() }}"> <input type="hidden" name="name" value="{{ person.get_name() }}">
<input type="submit" value="Update"> <input class="tui-button green-168" type="submit" value="Update">
</form> </form>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
<tr> <tr>
<td colspan="4" style='text-align:center; vertical-align:middle; background-color: #dcdcdc'>Andere <td colspan="4" style='text-align:center; vertical-align:middle'>Andere personen</td>
personen
</td>
</tr> </tr>
{% for person in people[1:] %} {% for person in people[1:] %}
<tr> <tr>
<th>{{ person.get_name() + person.get_remark() }}</th> <td>{{ person.get_name() + person.get_remark() }}</td>
<td>{{ person.get_status() }}</td> <td>{{ person.get_status() }}</td>
<td>{{ person.order_time_humanized() if person.order_time else "Unknown" }}</td> <td>{{ person.order_time_humanized() if person.order_time else "Unknown" }}</td>
<td> <td>
<form action="/status_update" method="POST"> <form action="/status_update" method="POST">
<input type="hidden" name="name" value="{{ person.get_name() }}"> <input type="hidden" name="name" value="{{ person.get_name() }}">
<input type="submit" value="Update"> <input class="tui-button green-168" type="submit" value="Update">
</form> </form>
</td> </td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</main> </fieldset>
</div>
</div>
</div>
</div>
</div>
</body> </body>
</html> </html>