summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-months.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-10-16 15:32:32 -0700
committerMark Wells <mark@freeside.biz>2015-10-16 15:48:16 -0700
commit05cc1ce102266aa0a25e085b0b39d777686210a6 (patch)
treee2d9e64f6b357453e83c482a6c279d21abe8da0d /httemplate/elements/select-months.html
parent8f086c4f68684d696ab64ccfab797272111d3ce4 (diff)
separate setup and recur discounts, #14092
Diffstat (limited to 'httemplate/elements/select-months.html')
-rw-r--r--httemplate/elements/select-months.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/httemplate/elements/select-months.html b/httemplate/elements/select-months.html
new file mode 100644
index 000000000..1cd72fcba
--- /dev/null
+++ b/httemplate/elements/select-months.html
@@ -0,0 +1,11 @@
+<%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
+ };
+
+</%init>
+<& select.html, %opt &>