summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-03-28 18:11:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-03-28 18:11:50 +0100
commit001fa0d3bcc098aaca80ba4b1538796ef0d9e308 (patch)
tree51bb312c19d49c31f43da30b0ed65b4eab830b72 /templates
parent156404df7fd1ad5ed6e8501d55ef9ba164817e21 (diff)
add train_no filter selector
Diffstat (limited to 'templates')
-rw-r--r--templates/bargraph.html.ep2
-rw-r--r--templates/filterform.html.ep8
2 files changed, 9 insertions, 1 deletions
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
@@ -17,6 +17,14 @@
</div>
<div class="field">
<div class="desc">
+ Zugnummer:
+ </div>
+ <div>
+ %= text_field 'filter_train_no', class => 'train_no'
+ </div>
+</div>
+<div class="field">
+ <div class="desc">
Bahnhof:
</div>
<div>