diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-11-15 14:25:08 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-11-15 14:25:08 -0800 |
commit | 3e8cad17fc7fd48d4b622771d6b77c6c136d80f2 (patch) | |
tree | c5490df2770557b8c4426e709c8750bd3921f62e /httemplate/edit/cust_main | |
parent | beeaed152f7b8d6e663176abfe53a2fa058657e2 (diff) |
fix detaching w/cust_main-require_phone, RT#25987
Diffstat (limited to 'httemplate/edit/cust_main')
-rw-r--r-- | httemplate/edit/cust_main/contact.html | 45 |
1 files changed, 8 insertions, 37 deletions
diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index 4140ec1ea..c2ebb093c 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -94,30 +94,13 @@ </%def> <%def phones> - <TR> - <TD ALIGN="right" VALIGN="top"><% mt('Phones') %></TD> - <TD COLSPAN=6> - - <TABLE CELLSPACING=0 CELLPADDING=0> - <TR> - <TD> - <INPUT TYPE="text" NAME="<%$pre%>daytime" VALUE="<% $cust_main->get($pre.'daytime') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>> - <BR><FONT SIZE=-1><% $daytime_label %></FONT> - </TD> - <TD> </TD> - <TD> - <INPUT TYPE="text" NAME="<%$pre%>night" VALUE="<% $cust_main->get($pre.'night') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>> - <BR><FONT SIZE=-1><% $night_label %></FONT> - </TD> - <TD> </TD> - <TD> - <INPUT TYPE="text" NAME="<%$pre%>mobile" VALUE="<% $cust_main->get($pre.'mobile') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>> - <BR><FONT SIZE=-1><% $mobile_label %></FONT> - </TD> - </TR> - </TABLE> - </TD> - </TR> + <& /elements/tr-cust_main-phones.html, + 'prefix' => $pre, + 'cust_main' => $cust_main, + 'onchange' => $onchange, + 'disabled' => $disabled, + 'style' => $style, + &> </%def> <%def fax> @@ -136,9 +119,7 @@ my $r = qq!<font color="#ff0000">*</font> !; </%once> <%shared> -my( %opt, $cust_main, $pre, $onchange, $disabled, @style, $style, - $daytime_label, $night_label, $mobile_label, - ); +my( %opt, $cust_main, $pre, $onchange, $disabled, @style, $style ); </%shared> <%init> @@ -176,16 +157,6 @@ $opt{geocode} ||= $cust_main->get('geocode'); $opt{censustract} ||= $cust_main->censustract; -$daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/ - ? 'Day' - : FS::Msgcat::_gettext('daytime'); -$night_label = FS::Msgcat::_gettext('night') =~/^(night)?$/ - ? 'Night' - : FS::Msgcat::_gettext('night') || 'Night'; -$mobile_label = FS::Msgcat::_gettext('mobile') =~/^(mobile)?$/ - ? 'Mobile' - : FS::Msgcat::_gettext('mobile') || 'Mobile'; - my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/ ? 'Driver’s License' : FS::Msgcat::_gettext('stateid') || 'Driver’s License'; |