From 33be560292ac02595f3fb386d5785d1f2b690dba Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 7 Sep 2020 20:49:45 +0200 Subject: working train intersection demo \o/ --- templates/layouts/app.html.ep | 2 +- templates/route_map.html.ep | 4 ++++ templates/trainsearch.html.ep | 29 +++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 templates/trainsearch.html.ep (limited to 'templates') 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 @@
% if (my $error = stash 'error') { -
Backend-Fehler: +
Fehler:
 %= $error
 
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.
Die Zugposition auf der Karte ist eine DBF-eigene Schätzung und kann erheblich von den tatsächlichen Gegebenheiten abweichen. +% if (stash('intersection')) { +
In dieser Ansicht sind Live-Updates der Zug- und Begegnungspositionen noch +nicht implementiert. +% }
% 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 @@ +
+
+ %= form_for _trainsearch => begin +
+
+
Zug
+
+ %= text_field 'train1', placeholder => 'RE 1234', id => 'train1_input', autofocus => 'autofocus' +
+
+
+ %= submit_button 'Strecke zeigen' +
+
+
+
+ Zweiter Zug (optional) +
+
+ %= text_field 'train2', placeholder => 'S 5678', id => 'train2_input' +
+
+
+ %= submit_button 'Begegnungen suchen (beta)' +
+
+ % end +
+
-- cgit v1.2.3