X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-months.html;h=4d85764114c3960ce59dec8bee40add5188ba550;hp=b90ce1ed729093d1152c3281da05b8532928670f;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=2b2dd969f3c18751afc583ad1e836ab8e6f73b5d diff --git a/httemplate/elements/tr-select-months.html b/httemplate/elements/tr-select-months.html index b90ce1ed7..4d8576411 100644 --- a/httemplate/elements/tr-select-months.html +++ b/httemplate/elements/tr-select-months.html @@ -1,11 +1,5 @@ -<%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 - }; - - -<& tr-select.html, %opt &> +<& tr-td-label.html, @_ &> + + <& select-months.html, @_ &> + +