From 7e6c7b269ab3bf3759d5f04568d13065343f89f8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 9 Oct 2013 13:22:11 +0200 Subject: show error messages directly in HTML --- cgi/templates/main.html.ep | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'cgi/templates/main.html.ep') diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep index 54b3196..c9ab3cf 100644 --- a/cgi/templates/main.html.ep +++ b/cgi/templates/main.html.ep @@ -23,6 +23,16 @@ text-decoration: none; } + div.error { + font-size: 150%; + font-weight: bold; + color: #dd0000; + } + + pre { + margin-bottom: 2em; + } + span.optional { color: #666666; } @@ -56,12 +66,20 @@ } - + % if ($city and $stop) { -% if ($frontend eq 'png') { +% if ($errstr) { +
Error from backend:
+
+
+%= $errstr
+
+
+% } +% elsif ($frontend eq 'png') { % } -- cgit v1.2.3