2019-01-30 17:54:05 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2019-02-13 21:40:23 +01:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #303030;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
</style>
|
2019-01-30 17:54:05 +01:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Pannenkoekenwachtrij</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<h1>Welkom bij de pannenkoekenwachtrij</h1>
|
|
|
|
|
|
|
|
<form action="/addPerson" method="POST">
|
|
|
|
<p>Naam van de volgende <input type="text" name="name"></p>
|
|
|
|
<p>Specifieke opmerkingen <input type="text" name="remark"></p>
|
|
|
|
<p><input type="submit" value="Persoon toevoegen"></p>
|
|
|
|
</form>
|
|
|
|
|
2019-01-30 18:37:09 +01:00
|
|
|
<form action="/statusUpdate" method="POST">
|
2019-02-13 23:29:58 +01:00
|
|
|
<input type="hidden" name="index" value="0">
|
|
|
|
<p><input type="submit" value="Update First Person"></p>
|
2019-01-30 18:37:09 +01:00
|
|
|
</form>
|
|
|
|
|
2019-01-30 17:54:05 +01:00
|
|
|
<h2>Zie hieronder de lijst van personen die een pannenkoek willen</h2>
|
2019-02-13 21:40:23 +01:00
|
|
|
<h3>Volgende Persoon:</h3>
|
|
|
|
{% if people %}
|
|
|
|
<tr>
|
|
|
|
<th>{{ people[0].getName() + people[0].getRemark() + ": " }}</th>
|
|
|
|
<td>{{ "Huidige status: " + people[0].getStatus() }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
<h3>Andere Personen:</h3>
|
2019-01-30 17:54:05 +01:00
|
|
|
<table>
|
2019-02-13 21:40:23 +01:00
|
|
|
{% for person in people[1:] %}
|
2019-01-30 17:54:05 +01:00
|
|
|
<tr>
|
2019-02-13 23:29:58 +01:00
|
|
|
<td>
|
|
|
|
<form action="/statusUpdate" method="POST">
|
|
|
|
<input type="hidden" name="name" value="{{ person.getName() }}">
|
|
|
|
<input type="submit" value="Update">
|
|
|
|
</form>
|
|
|
|
</td>
|
2019-01-30 17:54:05 +01:00
|
|
|
<th>{{ person.getName() + person.getRemark() + ": " }}</th>
|
|
|
|
<td>{{ "Huidige status: " + person.getStatus() }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</header>
|
|
|
|
</body>
|
2019-02-13 21:40:23 +01:00
|
|
|
</html>
|