[freeside-commits] branch master updated. d928d26f1d623720d2f0c854a9d0b38210d66d2d

Ivan ivan at 420.am
Thu Jun 18 00:50:26 PDT 2015


The branch, master has been updated
       via  d928d26f1d623720d2f0c854a9d0b38210d66d2d (commit)
      from  c6ab4d567c978cbe616c8cb5201c61bde212b3a0 (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 d928d26f1d623720d2f0c854a9d0b38210d66d2d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Jun 18 00:50:23 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