summaryrefslogtreecommitdiff
path: root/templates/barform.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-02-25 16:16:35 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-02-25 16:16:35 +0100
commit87fc996ecf568d6d73a57c3233e28421352057c1 (patch)
tree821d6d31b469b4fa95a853118a92f9e06d85f4ea /templates/barform.html.ep
parent4d17f9167fa57d14576fe96f580123805cdf1100 (diff)
parametric bargraph is parametric
Diffstat (limited to 'templates/barform.html.ep')
-rw-r--r--templates/barform.html.ep17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/barform.html.ep b/templates/barform.html.ep
new file mode 100644
index 0000000..4d43f42
--- /dev/null
+++ b/templates/barform.html.ep
@@ -0,0 +1,17 @@
+%= form_for bar => begin
+Bargraph:
+% my %yargs = %{$self->barplot_args->{y}};
+% my @yarg_keys = sort keys %yargs;
+%= select_field ysource => [map {[$yargs{$_}->{desc}, $_]} @yarg_keys]
+aufgeteilt nach
+% my %xargs = %{$self->barplot_args->{x}};
+% my @xarg_keys = sort keys %xargs;
+%= select_field xsource => [map {[$xargs{$_}->{desc}, $_]} @xarg_keys]
+mit
+Abmessungen
+%= text_field 'width' => 960, class => 'dimension'
+x
+%= text_field 'height' => 500, class => 'dimension'
+Pixel.
+%= submit_button 'Go'
+% end