summaryrefslogtreecommitdiff
path: root/templates/filterform.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/filterform.html.ep')
-rw-r--r--templates/filterform.html.ep45
1 files changed, 45 insertions, 0 deletions
diff --git a/templates/filterform.html.ep b/templates/filterform.html.ep
new file mode 100644
index 0000000..186b7d6
--- /dev/null
+++ b/templates/filterform.html.ep
@@ -0,0 +1,45 @@
+% my $filter_opts = $self->barplot_filters;
+<div class="field">
+ <div class="desc">
+ Linie:
+ </div>
+ <div>
+ %= select_field filter_line => $filter_opts->{lines}
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
+ Zugtyp:
+ </div>
+ <div>
+ %= select_field filter_train_type => $filter_opts->{train_types}
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
+ Bahnhof:
+ </div>
+ <div>
+ %= select_field filter_station => $filter_opts->{stations}
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
+ Zielbahnhof:
+ </div>
+ <div>
+ %= select_field filter_destination => $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).
+ %= submit_button 'Go'
+ </div>
+</div>