Files
WieRijd/templates/list.html
2019-07-11 22:23:41 +02:00

63 lines
2.1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Wie Rijd Er</title>
<link rel="stylesheet" href="/static/bootstrap-4.3.1-dist/css/bootstrap.min.css">
<script src="/static/jquery-3.4.1/js/jquery-3.4.1.min.js"></script>
<script src="/static/bootstrap-4.3.1-dist/js/bootstrap.bundle.js"></script>
</head>
<body>
<nav class="navbar navbar-dark bg-dark">
<span class="navbar-brand mb-0 h1">Ritten</span>
</nav>
<div class="h-100"></div>
<div class="container">
<div class="row">
<h1>Gereden ritten</h1>
<div class="col-md-12">
<table class="table table-striped">
<thead>
<th scope="col">Naam</th>
<th scope="col">Aantal</th>
</thead>
<tbody>
{% for person in persons %}
<tr>
<td>{{ person.name }}</td>
<td>{{ person.amount }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<div class="row">
<h2>Nieuwe rit toevoegen</h2>
<div class="col-md-12">
<form action="add" method="post">
<div class="form-group">
<label for="selectName">Naam</label>
<div class="input-group">
<select name="name" id="selectName" class="custom-select">
{% for person in persons %}
<option value="{{ person.name }}">{{ person.name }}</option>
{% endfor %}
</select>
<div class="input-group-append">
<input type="submit" value="submit" class="btn btn-primary">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</body>
</html>