summaryrefslogtreecommitdiff
path: root/templates/generalbar.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-06 14:22:39 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-06 14:22:39 +0200
commitb3de33b95e9cd7449f0a5427236d0a20b55c051e (patch)
tree4af71c032403d7d875e2f04ada79b5779344fef7 /templates/generalbar.html.ep
parent8fca7e3bc7d959501c81968e3935ad034dff6dfc (diff)
Squashed commit of the following:
commit 3b3dd6ea92799a95ecaa7c90ede830a62d53ee05 Author: Daniel Friesel <derf@finalrewind.org> Date: Sun Sep 6 14:21:27 2015 +0200 margins commit ae911d4fba68adce63a16bda82f9b06a51a4aa81 Merge: 0625d89 8fca7e3 Author: I <marudor@marudor.de> Date: Sat Sep 5 14:49:12 2015 +0200 Merge branch 'master' of https://github.com/derf/iris-delay-stats # Conflicts: # templates/intro.html.ep commit 0625d894bb5294f3d47cca759010ee969db7a2d1 Author: marudor <marudor@marudor.de> Date: Sat Sep 5 13:51:49 2015 +0200 fancy forms
Diffstat (limited to 'templates/generalbar.html.ep')
-rw-r--r--templates/generalbar.html.ep31
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/generalbar.html.ep b/templates/generalbar.html.ep
new file mode 100644
index 0000000..ed0cfb2
--- /dev/null
+++ b/templates/generalbar.html.ep
@@ -0,0 +1,31 @@
+% if (not defined param('want_msg')) {
+ % param(want_msg => 0);
+ % }
+ %= form_for bar => begin
+ <input type="hidden" value="0" name="want_msg"/>
+ <div class="row">
+ <div class="input-field col s12">
+ <label class="active">Bartyp</label>
+ % my %yargs = %{$self->barplot_args->{y}};
+ % my @yarg_keys = sort keys %yargs;
+ %= select_field ysource => [map {[$yargs{$_}->{desc}, $_]} @yarg_keys]
+ </div>
+ </div>
+ <div class="row">
+ <div class="input-field col s4">
+ <label class="active">aufgeteilt nach</label>
+ % my %xargs = %{$self->barplot_args->{x}};
+ % my @xarg_keys = sort keys %xargs;
+ %= select_field xsource => [map {[$xargs{$_}->{desc}, $_]} @xarg_keys]
+ </div>
+ <div class="input-field col s4">
+ <label>Breite</label>
+ %= text_field 'width' => 960, class => 'dimension'
+ </div>
+ <div class="input-field col s4">
+ <label>Höhe</label>
+ %= text_field 'height' => 500, class => 'dimension'
+ </div>
+ </div>
+ %= include 'filterform';
+ % end