diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-18 00:50:23 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-18 00:50:23 -0700 |
commit | d928d26f1d623720d2f0c854a9d0b38210d66d2d (patch) | |
tree | a821bc1c91ea892bbc49256a5c1cac2c56ebe52f /httemplate | |
parent | c6ab4d567c978cbe616c8cb5201c61bde212b3a0 (diff) |
UI spring cleaning: prorate day dropdown
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 18 |
1 files 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') ) { <TR> - <TH ALIGN="right" WIDTH="200"><% mt('Prorate day (1-28)') |h %> </TD> + <TH ALIGN="right" WIDTH="200"><% mt('Prorate day') |h %> </TD> <TD> - <INPUT TYPE="text" NAME="prorate_day" VALUE="<% $cust_main->prorate_day %>" SIZE=3 MAXLENGTH=2> + <SELECT NAME="prorate_day"> + <% prorate_day_options($cust_main->prorate_day) %> + </SELECT> </TD> </TR> + +% 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 .= "<OPTION VALUE='$prorate_day' $sel>$prorate_day</OPTION>"; +% } +% $ret; +% } + % } else { <INPUT TYPE="hidden" NAME="prorate_day" VALUE="<% $cust_main->prorate_day %>"> % } |