From d928d26f1d623720d2f0c854a9d0b38210d66d2d Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 18 Jun 2015 00:50:23 -0700 Subject: [PATCH] UI spring cleaning: prorate day dropdown --- httemplate/edit/cust_main/billing.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index c3e89226b..6f716c1be 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -128,11 +128,25 @@ % if ( $conf->exists('cust_main-select-prorate_day') ) { - <% mt('Prorate day (1-28)') |h %> + <% mt('Prorate day') |h %> - + + +% sub prorate_day_options { +% my $curr_value = shift; +% my $ret = ''; +% for my $prorate_day ( 1 .. 28 ) { +% my $sel = ''; +% $sel = "SELECTED='SELECTED'" if $curr_value == $prorate_day; +% $ret .= ""; +% } +% $ret; +% } + % } else { % } -- 2.11.0