Added distinction between first and other people

This commit is contained in:
hannes-kl 2019-02-13 21:40:23 +01:00
parent 2e40788bdb
commit 3cc0857973

View file

@ -1,6 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
background-color: #303030;
color: white;
}
</style>
<meta charset="UTF-8">
<title>Pannenkoekenwachtrij</title>
</head>
@ -20,8 +26,16 @@
</form>
<h2>Zie hieronder de lijst van personen die een pannenkoek willen</h2>
<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>
<table>
{% for person in people %}
{% for person in people[1:] %}
<tr>
<th>{{ person.getName() + person.getRemark() + ": " }}</th>
<td>{{ "Huidige status: " + person.getStatus() }}</td>
@ -30,4 +44,4 @@
</table>
</header>
</body>
</html>
</html>