52 lines
1.6 KiB
HTML
52 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Locaties</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
|
|
</head>
|
|
<body>
|
|
{% include 'navbar_template.html' %}
|
|
{% include 'flash_template.html' %}
|
|
<h1>List of locaties</h1>
|
|
<p>Er zijn momenteel {{ locatiecount }} locaties in het systeem</p>
|
|
<table style="width:100%">
|
|
<tr>
|
|
<th>Locatie ID</th>
|
|
<th>Locatie naam</th>
|
|
</tr>
|
|
{% for row in locaties %}
|
|
<tr style="text-align: center;">
|
|
<td>{{ row[0] }}</td>
|
|
<td>{{ row[1] }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<form>
|
|
<label for="maxitems">Max items in table:</label>
|
|
<select name="maxitems" id="maxitems">
|
|
<option value="10">10</option>
|
|
<option value="20">20</option>
|
|
<option value="50">50</option>
|
|
<option value="100">100</option>
|
|
</select>
|
|
<label for="pagenum">Table page:</label>
|
|
<select name="pagenum" id="pagenum">
|
|
<option value="1">1</option>
|
|
<option value="2">2</option>
|
|
<option value="3">3</option>
|
|
<option value="4">4</option>
|
|
</select>
|
|
<button type="submit">Refresh table</button>
|
|
</form>
|
|
|
|
<h3>Nieuwe locatie toevoegen</h3>
|
|
<form method="POST" action="/locaties/addlocatie">
|
|
<input type="text" placeholder="Unieke locatie ID" name="lid" required>
|
|
<input type="text" placeholder="Locatie naam" name="lname" required>
|
|
<button type="submit">Voeg Toe</button>
|
|
</form>
|
|
|
|
</body>
|
|
</html> |