diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-03-31 21:57:49 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-03-31 21:57:49 +0200 |
commit | bc642114e5f32158fe9687e4325709882e313cbb (patch) | |
tree | c82ba743c3d6a309967c8c312542f8e27dcadc28 /templates | |
parent | 2c54ad136394f7fef01f5143ee38a2a8e3e46925 (diff) |
add date filter
Diffstat (limited to 'templates')
-rw-r--r-- | templates/bargraph.html.ep | 2 | ||||
-rw-r--r-- | templates/filterform.html.ep | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/templates/bargraph.html.ep b/templates/bargraph.html.ep index da3510e..343a5df 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_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') %>', +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') %>&filter_date_start=<%= param('filter_date_start') %>&filter_date_stop=<%= param('filter_date_stop') %>', '<%== 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 844ecb7..ed43634 100644 --- a/templates/filterform.html.ep +++ b/templates/filterform.html.ep @@ -48,6 +48,17 @@ und %= text_field 'filter_delay_max', class => 'delay', placeholder => '+∞' Minuten (inklusive). + </div> +</div> +<div class="field"> + <div class="desc"> + Zeitraum von + </div> + <div> + %= date_field 'filter_date_start', class => 'datetime' + (inklusive) bis + %= date_field 'filter_date_stop', class => 'datetime' + (exklusive) %= submit_button 'Go' </div> </div> |