summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-07 20:49:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-07 20:49:45 +0200
commit33be560292ac02595f3fb386d5785d1f2b690dba (patch)
treecfdc6e26a5f522f3e3157e7e61da75d922299b9f /templates
parentd2f3efbd0c2839c287a6e9b43b5383816b162a56 (diff)
working train intersection demo \o/
Diffstat (limited to 'templates')
-rw-r--r--templates/layouts/app.html.ep2
-rw-r--r--templates/route_map.html.ep4
-rw-r--r--templates/trainsearch.html.ep29
3 files changed, 34 insertions, 1 deletions
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index fc81ba3..f32fdb2 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -90,7 +90,7 @@
<div class="container">
% if (my $error = stash 'error') {
-<div class="error"><strong>Backend-Fehler:</strong>
+<div class="error"><strong>Fehler:</strong>
<pre>
%= $error
</pre>
diff --git a/templates/route_map.html.ep b/templates/route_map.html.ep
index 1ba96bc..5bc7fd6 100644
--- a/templates/route_map.html.ep
+++ b/templates/route_map.html.ep
@@ -86,6 +86,10 @@ Die eingezeichnete Route stammt aus dem HAFAS und ist im Detail oft
fehlerbehaftet.<br/>
Die Zugposition auf der Karte ist eine DBF-eigene Schätzung und kann erheblich
von den tatsächlichen Gegebenheiten abweichen.
+% if (stash('intersection')) {
+<br/>In dieser Ansicht sind Live-Updates der Zug- und Begegnungspositionen noch
+nicht implementiert.
+% }
</div>
% if (my $op = stash('operator')) {
diff --git a/templates/trainsearch.html.ep b/templates/trainsearch.html.ep
new file mode 100644
index 0000000..5d6d3f9
--- /dev/null
+++ b/templates/trainsearch.html.ep
@@ -0,0 +1,29 @@
+<div class="container">
+ <div class="input-field">
+ %= form_for _trainsearch => begin
+ <div>
+ <div class="field">
+ <div class="desc">Zug</div>
+ <div>
+ %= text_field 'train1', placeholder => 'RE 1234', id => 'train1_input', autofocus => 'autofocus'
+ </div>
+ </div>
+ <div class="field">
+ %= submit_button 'Strecke zeigen'
+ </div>
+ <div class="break"></div>
+ <div class="field">
+ <div class="desc">
+ Zweiter Zug (optional)
+ </div>
+ <div>
+ %= text_field 'train2', placeholder => 'S 5678', id => 'train2_input'
+ </div>
+ </div>
+ <div class="field">
+ %= submit_button 'Begegnungen suchen (beta)'
+ </div>
+ </div>
+ % end
+ </div>
+</div>