From 7614dc8ff0318e14e1cd7a590ee817ce5050923e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 6 Mar 2015 19:48:47 +0100 Subject: barform: add optional filters (TODO: Lol Encoding) --- templates/barform.html.ep | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'templates') diff --git a/templates/barform.html.ep b/templates/barform.html.ep index 62c8bda..6b23fe2 100644 --- a/templates/barform.html.ep +++ b/templates/barform.html.ep @@ -1,3 +1,4 @@ +
% if (not defined param('want_msg')) { % param(want_msg => 0); % } @@ -25,4 +26,51 @@ x %= text_field 'height' => 500, class => 'dimension' Pixel. %= submit_button 'Go' +
+% my $filter_opts = $self->barplot_filters; +Optionale Einschränkungen: +
+
+ Linie: +
+
+ %= select_field filter_line => [map {[$_, $_]} @{$filter_opts->{lines}} ] +
+
+
+
+ Zugtyp: +
+
+ %= select_field filter_train_type => [map {[$_, $_]} @{$filter_opts->{train_types}} ] +
+
+
+
+ Bahnhof: +
+
+ %= select_field filter_station => [map {[$_, $_]} @{$filter_opts->{stations}} ] +
+
+
+
+ Zielbahnhof: +
+
+ %= select_field filter_destination => [map {[$_, $_]} @{$filter_opts->{destinations}} ] +
+
+
+
+ Verspätung zwischen +
+
+ %= text_field 'filter_delay_min', class => 'delay', placeholder => '-∞' + und + %= text_field 'filter_delay_max', class => 'delay', placeholder => '+∞' + Minuten (inklusive). +
+
% end +
-- cgit v1.2.3