summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-06-26 22:22:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-06-26 22:22:47 +0200
commit2cad8ef881b66b822769a15968f952bb2419f188 (patch)
treee2b3278293ebdd061f551d14ce7de00ce1f0c562 /templates
parentd21d35ef767007257e80a795a41b6f4cc8a9fcbc (diff)
add train station looukp by name
Diffstat (limited to 'templates')
-rw-r--r--templates/landing_page.html4
-rw-r--r--templates/stops.html30
2 files changed, 32 insertions, 2 deletions
diff --git a/templates/landing_page.html b/templates/landing_page.html
index a059b55..f487616 100644
--- a/templates/landing_page.html
+++ b/templates/landing_page.html
@@ -23,13 +23,13 @@
<div class="geolocation">
<button id="geolocationsearch">Haltestellen in der Umgebung suchen</button>
</div>
- <!--<form action="/to_board" method="POST">
+ <form action="/find/stop">
<input id="name" name="name" required type="text">
<label for="name">Manuelle Eingabe</label>
<button class="btn waves-effect waves-light btn-flat" type="submit" name="action" value="departures">
Suchen
</button>
- </form>-->
+ </form>
</div>
</div>
</body>
diff --git a/templates/stops.html b/templates/stops.html
new file mode 100644
index 0000000..4f31c0a
--- /dev/null
+++ b/templates/stops.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html lang="de">
+<head>
+ <title>{{ title }}</title>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="keywords" content="Abfahrtsmonitor, Bahnhofstafel, Abfahrten, Abfahrtstafel, Nahverkehr, Haltestellen">
+ <meta name="description" content="Inoffizieller Abfahrtsmonitor für Nahverkehr">
+ <meta name="theme-color" content="#00838f">
+ <link rel="icon" type="image/png" href="/static/icons/icon-16x16.png" sizes="16x16">
+ <link rel="icon" type="image/png" href="/static/icons/icon-32x32.png" sizes="32x32">
+ <link rel="icon" type="image/png" href="/static/icons/icon-96x96.png" sizes="96x96">
+ <link rel="apple-touch-icon" href="/static/icons/icon-120x120.png">
+ <link rel="apple-touch-icon" sizes="180x180" href="/static/icons/icon-180x180.png">
+ <link rel="apple-touch-icon" sizes="152x152" href="/static/icons/icon-152x152.png">
+ <link rel="apple-touch-icon" sizes="167x167" href="/static/icons/icon-167x167.png">
+ <link href="/static/v0/css/wip.css" id="theme" rel="stylesheet">
+</head>
+<body>
+<div class="container">
+ <div class="content">
+ <ul>
+ {% for stop in stops %}
+ <li><a href="/board/{{ stop['id'] }}">{{ stop['name'] }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+</div>
+</body>
+</html>