X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-months.html;fp=httemplate%2Felements%2Fselect-months.html;h=1cd72fcba08a68c9deddf16cecd6f834f2016807;hb=f641486e28214ad1eca18c47d2252701b83614f1;hp=0000000000000000000000000000000000000000;hpb=b6f16a22bd93ec66ffbb1da30e63f7e950b3b819;p=freeside.git 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 + }; + + +<& select.html, %opt &>