summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-months.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-07-13 17:26:48 -0700
committerMark Wells <mark@freeside.biz>2015-07-14 13:25:05 -0700
commit98f6d91ec7eaa907204afbfeb90ede1e3bff656d (patch)
treee5d7b870c4965f9a2b580e3cad5aed82d300e5c8 /httemplate/elements/tr-select-months.html
parent57e3a0e08b81d52851314c60f37115a05b9be79e (diff)
automatic package changes for supplemental packages, #37102
Diffstat (limited to 'httemplate/elements/tr-select-months.html')
-rw-r--r--httemplate/elements/tr-select-months.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-months.html b/httemplate/elements/tr-select-months.html
new file mode 100644
index 000000000..3ff28f99b
--- /dev/null
+++ b/httemplate/elements/tr-select-months.html
@@ -0,0 +1,12 @@
+<%init>
+my %opt = @_;
+$opt{id} ||= $opt{field}; # should be the default everywhere
+my $max = $opt{max} || 36;
+$opt{options} = [ '', 1 .. $max ];
+$opt{labels} = { '' => '',
+ map { $_ => emt('[quant,_1,month]', $_) } 1 .. $max
+ };
+
+warn Dumper(\%opt);
+</%init>
+<& tr-select.html, %opt &>