summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-03-06 19:48:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-03-06 19:48:47 +0100
commit7614dc8ff0318e14e1cd7a590ee817ce5050923e (patch)
treeddd51c1a74ed8610610e061cbe5ad62ea6a42ab0 /templates
parent4080ac1b6ab3bcd33ac1e370b217f433cebad1f1 (diff)
barform: add optional filters (TODO: Lol Encoding)
Diffstat (limited to 'templates')
-rw-r--r--templates/barform.html.ep48
1 files changed, 48 insertions, 0 deletions
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 @@
+<div>
% 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'
+<br/>
+% my $filter_opts = $self->barplot_filters;
+Optionale Einschränkungen:
+<div class="field">
+ <div class="desc">
+ Linie:
+ </div>
+ <div>
+ %= select_field filter_line => [map {[$_, $_]} @{$filter_opts->{lines}} ]
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
+ Zugtyp:
+ </div>
+ <div>
+ %= select_field filter_train_type => [map {[$_, $_]} @{$filter_opts->{train_types}} ]
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
+ Bahnhof:
+ </div>
+ <div>
+ %= select_field filter_station => [map {[$_, $_]} @{$filter_opts->{stations}} ]
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
+ Zielbahnhof:
+ </div>
+ <div>
+ %= select_field filter_destination => [map {[$_, $_]} @{$filter_opts->{destinations}} ]
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
+ Verspätung zwischen
+ </div>
+ <div>
+ %= text_field 'filter_delay_min', class => 'delay', placeholder => '-∞'
+ und
+ %= text_field 'filter_delay_max', class => 'delay', placeholder => '+∞'
+ Minuten (inklusive).
+ </div>
+</div>
% end
+<div>