diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-03-06 19:48:47 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-03-06 19:48:47 +0100 |
commit | 7614dc8ff0318e14e1cd7a590ee817ce5050923e (patch) | |
tree | ddd51c1a74ed8610610e061cbe5ad62ea6a42ab0 /templates | |
parent | 4080ac1b6ab3bcd33ac1e370b217f433cebad1f1 (diff) |
barform: add optional filters (TODO: Lol Encoding)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/barform.html.ep | 48 |
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> |