[freeside-commits] branch FREESIDE_4_BRANCH updated. 1376bb0613b54034173f248c7a2bfb45e30d9801
Ivan
ivan at 420.am
Thu Jun 18 00:50:30 PDT 2015
The branch, FREESIDE_4_BRANCH has been updated
via 1376bb0613b54034173f248c7a2bfb45e30d9801 (commit)
from 5754ecce207c69933d17bb1dd4cd04db76b803ac (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1376bb0613b54034173f248c7a2bfb45e30d9801
Author: Ivan Kohler <ivan at freeside.biz>
Date: Thu Jun 18 00:50:26 2015 -0700
UI spring cleaning: prorate day dropdown
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index c3e8922..6f716c1 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 %>">
% }
-----------------------------------------------------------------------
Summary of changes:
httemplate/edit/cust_main/billing.html | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list