automatic package changes for supplemental packages, #37102
[freeside.git] / httemplate / elements / tr-select-months.html
diff --git a/httemplate/elements/tr-select-months.html b/httemplate/elements/tr-select-months.html
new file mode 100644 (file)
index 0000000..3ff28f9
--- /dev/null
@@ -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 &>