From 001fa0d3bcc098aaca80ba4b1538796ef0d9e308 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 28 Mar 2015 18:11:50 +0100 Subject: add train_no filter selector --- templates/bargraph.html.ep | 2 +- templates/filterform.html.ep | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/bargraph.html.ep b/templates/bargraph.html.ep index f626fbd..da3510e 100644 --- a/templates/bargraph.html.ep +++ b/templates/bargraph.html.ep @@ -2,7 +2,7 @@ %= javascript begin -show_bargraph('/2ddata.tsv?aggregate=<%= param('xsource') %>&metric=<%= param('ysource') %>&msgnum=<%= param('msgnum') %>&filter_line=<%= param('filter_line') %>&filter_train_type=<%= param('filter_train_type') %>&filter_station=<%= param('filter_station') %>&filter_destination=<%= param('filter_destination') %>&filter_delay_min=<%= param('filter_delay_min') %>&filter_delay_max=<%= param('filter_delay_max') %>', +show_bargraph('/2ddata.tsv?aggregate=<%= param('xsource') %>&metric=<%= param('ysource') %>&msgnum=<%= param('msgnum') %>&filter_line=<%= param('filter_line') %>&filter_train_no=<%= param('filter_train_no') %>&filter_train_type=<%= param('filter_train_type') %>&filter_station=<%= param('filter_station') %>&filter_destination=<%= param('filter_destination') %>&filter_delay_min=<%= param('filter_delay_min') %>&filter_delay_max=<%= param('filter_delay_max') %>', '<%== param('title') %>', '<%= param('xlabel') %>', '<%= param('ylabel') %>', '<%= param('yformat') %>', '<%= param('width') %>', '<%= param('height') %>'); diff --git a/templates/filterform.html.ep b/templates/filterform.html.ep index 186b7d6..844ecb7 100644 --- a/templates/filterform.html.ep +++ b/templates/filterform.html.ep @@ -15,6 +15,14 @@ %= select_field filter_train_type => $filter_opts->{train_types} +
+
+ Zugnummer: +
+
+ %= text_field 'filter_train_no', class => 'train_no' +
+
Bahnhof: -- cgit v1.2.3