From 629ca9e9f69be662ef877e1f0e5bf2e020e4a691 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Mar 2019 21:49:47 +0100 Subject: Show backend errors on station selection page --- templates/landingpage.html.ep | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 6ebf726..c672dd2 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -1,4 +1,16 @@ % if (is_user_authenticated()) { + % if (stash('error')) { +
+
+
+
+ Backend-Fehler +

<%= stash('error') %>

+
+
+
+
+ % }
% my $status = get_user_status(); @@ -35,7 +47,7 @@
%= form_for 'list_departures' => begin -
+
%= text_field 'station', id => 'station', class => 'autocomplete white-text', require => undef
-- cgit v1.2.3