diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/barform.html.ep | 10 | ||||
-rw-r--r-- | templates/bargraph.html.ep | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/templates/barform.html.ep b/templates/barform.html.ep index 4d43f42..0e0c793 100644 --- a/templates/barform.html.ep +++ b/templates/barform.html.ep @@ -1,8 +1,16 @@ %= form_for bar => begin -Bargraph: +%= radio_button 'want_msg' => 0 +Allgemeiner Bargraph: % my %yargs = %{$self->barplot_args->{y}}; % my @yarg_keys = sort keys %yargs; %= select_field ysource => [map {[$yargs{$_}->{desc}, $_]} @yarg_keys] +<br/> +%= radio_button 'want_msg' => 1 +Meldungs-Bargraph: +% %yargs = %{$self->barplot_args->{msg}}; +% @yarg_keys = sort keys %yargs; +%= select_field msgnum => [map {[$yargs{$_}->{desc}, $_]} @yarg_keys] +<br/> aufgeteilt nach % my %xargs = %{$self->barplot_args->{x}}; % my @xarg_keys = sort keys %xargs; diff --git a/templates/bargraph.html.ep b/templates/bargraph.html.ep index 3d5eda2..7e989e6 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') %>', +show_bargraph('/2ddata.tsv?aggregate=<%= param('xsource') %>&metric=<%= param('ysource') %>&msgnum=<%= param('msgnum') %>', '<%= param('title') %>', '<%= param('xlabel') %>', '<%= param('ylabel') %>', '<%= param('yformat') %>', '<%= param('width') %>', '<%= param('height') %>'); |