Initial version
This commit is contained in:
7
templates/about.html
Executable file
7
templates/about.html
Executable file
@@ -0,0 +1,7 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
<div class="about">
|
||||
<h1>Zoek je aansluiting</h1>
|
||||
<p>versie 2021-12-17</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
58
templates/index.html
Executable file
58
templates/index.html
Executable file
@@ -0,0 +1,58 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
<div class="home">
|
||||
<div class="searchMP">
|
||||
<form action="" method="post" role="form">
|
||||
{{ form.csrf }}
|
||||
<div class="form-group">
|
||||
<label for="name">Postcode:</label>
|
||||
<input type="text" class="form-control" id="postcode" name="postalcode" placeholder="Wat is je postcode?">
|
||||
|
||||
<label for="houseno">Huisnummer:</label>
|
||||
<input type="text" class="form-control" id="houseno" name="houseno" placeholder="Wat is je huisnummer?">
|
||||
|
||||
<label for="houseno_ext">Toevoeging:</label>
|
||||
<input type="text" class="form-control" id="houseno_ext" name="houseno_ext" placeholder="een huisnummer toevoeging?">
|
||||
|
||||
<div class="input-submit">
|
||||
<input type="submit" value="Zoek">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="messages">
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<ul>
|
||||
{% for category, message in messages %}
|
||||
{% if category == 'info' %}
|
||||
<li>{{ message }}</li>
|
||||
{% endif %}
|
||||
{% endfor %}</ul>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
<div class="results">
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<table class="results">
|
||||
<tr><th>EAN Aansluiting</th><th>Product</th><th>Straatnaam</th><th>Huisnr.</th><th>Toev.</th><th>Woonplaats</th><th>Bijz. aansl.</th><th>Netbeheerder</th><th>EAN Netbeheerder</th></tr>
|
||||
{% for category, message in messages %}
|
||||
<tr>
|
||||
{% if category == 'results' %}
|
||||
{% set mpr = message.split(';') %}
|
||||
{% for item in mpr %}
|
||||
<td>{{ item }}</td>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
25
templates/layout.html
Executable file
25
templates/layout.html
Executable file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Aansluitingenregister</title>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<h1 class="logo">Zoek je aansluiting</h1>
|
||||
<strong><nav>
|
||||
<ul class="menu">
|
||||
<li><a href="{{ url_for('home') }}">Home</a></li>
|
||||
<li><a href="{{ url_for('about') }}">About</a></li>
|
||||
</ul>
|
||||
</nav></strong>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user