From 209ad4c000962be07a64869614d004a476cf9557 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 9 Oct 2013 18:22:36 +0200 Subject: HTML5, jquery update, use same design as vrr-fakedisplay --- cgi/templates/layouts/default.html.ep | 189 ++++++++++++++++++++++------------ 1 file changed, 121 insertions(+), 68 deletions(-) (limited to 'cgi/templates') diff --git a/cgi/templates/layouts/default.html.ep b/cgi/templates/layouts/default.html.ep index a755388..2bdd161 100644 --- a/cgi/templates/layouts/default.html.ep +++ b/cgi/templates/layouts/default.html.ep @@ -1,24 +1,18 @@ - - + + <%= $title %> - + % if ($self->stash('refresh_interval')) { % } + - %= javascript 'jquery-1.9.1.min.js' + %= javascript 'jquery-1.10.2.min.js' %= javascript 'marquee.js' %= javascript begin $(function () { $('marquee').marquee() }); @@ -197,42 +218,74 @@ -<%= content %> +% if (my $error = stash 'error') { +
Received an error from the backend service:
+
+
+%= $error
+
+
+% } + +%= content
-<% if (my $error = stash 'error') { %> -

- Error: <%= $error %>
-

-<% } %> - -<%= form_for _redirect => begin %> -

- Station name - <%= text_field 'station' %> -
- only display routes via - <%= text_field 'via' %> - (optional) -
- on platforms - <%= text_field 'platforms' %> - (optional) -
- <%= check_box 'hidelowdelay' => 1 %> - hide delay < 5 minutes -
- display type - <%= select_field mode => [['combined' => 'multi'], ['platform' => 'single']] %> - <%= submit_button 'Display' %> -

-<% end %> +%= form_for _redirect => begin +
+
+
Station name
+
+ %= text_field 'station' + %= submit_button 'Display' +
+
+
+ optional: +
+
+ only display routes via +
+
+ %= text_field 'via' +
+
+
+
+ on platforms +
+
+ %= text_field 'platforms' +
+
+
+
+ hide delay < 5 minutes +
+
+ %= check_box 'hidelowdelay' => 1 +
+
+
+
+ display type +
+
+ %= select_field mode => [['combined' => 'multi'], ['platform' => 'single']] +
+
-

-Note: Umlauts do not work reliably. Try either ä → ae or ä → a. -

+% end + +
+ +
+notes: + +
db-fakedisplay -- cgit v1.2.3