From 98f6d91ec7eaa907204afbfeb90ede1e3bff656d Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 13 Jul 2015 17:26:48 -0700 Subject: automatic package changes for supplemental packages, #37102 --- httemplate/elements/tr-select-months.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 httemplate/elements/tr-select-months.html (limited to '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 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); + +<& tr-select.html, %opt &> -- cgit v1.2.1