From 05cc1ce102266aa0a25e085b0b39d777686210a6 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 16 Oct 2015 15:32:32 -0700 Subject: separate setup and recur discounts, #14092 --- httemplate/elements/select-months.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 httemplate/elements/select-months.html (limited to 'httemplate/elements/select-months.html') 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 &> -- cgit v1.2.1