diff options
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> |