summaryrefslogtreecommitdiff
path: root/templates/landingpage.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-16 21:49:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-16 21:49:47 +0100
commit629ca9e9f69be662ef877e1f0e5bf2e020e4a691 (patch)
tree3bb8b60d087d41a9f29810cb9501efaf6372e794 /templates/landingpage.html.ep
parent42bb5cc4938a093c0efa9857f11e2687a3871da0 (diff)
Show backend errors on station selection page
Diffstat (limited to 'templates/landingpage.html.ep')
-rw-r--r--templates/landingpage.html.ep14
1 files changed, 13 insertions, 1 deletions
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')) {
+ <div class="row">
+ <div class="col s12">
+ <div class="card red darken-4">
+ <div class="card-content white-text">
+ <span class="card-title">Backend-Fehler</span>
+ <p><%= stash('error') %></p>
+ </div>
+ </div>
+ </div>
+ </div>
+ % }
<div class="row">
<div class="col s12">
% my $status = get_user_status();
@@ -35,7 +47,7 @@
<div class="progress"><div class="indeterminate"></div></div>
</div>
%= form_for 'list_departures' => begin
- <div class="input-field text-white">
+ <div class="input-field">
%= text_field 'station', id => 'station', class => 'autocomplete white-text', require => undef
<label for="station">Manuelle Eingabe (Name oder DS100)</label>
</div>