summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_main
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/cust_main')
-rw-r--r--httemplate/edit/cust_main/basics.html58
-rw-r--r--httemplate/edit/cust_main/billing.html40
-rw-r--r--httemplate/edit/cust_main/company.html9
-rw-r--r--httemplate/edit/cust_main/contacts_new.html16
-rw-r--r--httemplate/edit/cust_main/cust_payby.html17
-rw-r--r--httemplate/edit/cust_main/fax.html2
-rw-r--r--httemplate/edit/cust_main/first_pkg.html2
-rw-r--r--httemplate/edit/cust_main/first_pkg/svc_acct.html14
-rw-r--r--httemplate/edit/cust_main/first_pkg/svc_dsl.html16
-rw-r--r--httemplate/edit/cust_main/first_pkg/svc_phone.html12
-rw-r--r--httemplate/edit/cust_main/name.html10
-rw-r--r--httemplate/edit/cust_main/phones.html4
12 files changed, 123 insertions, 77 deletions
diff --git a/httemplate/edit/cust_main/basics.html b/httemplate/edit/cust_main/basics.html
index 1c5023de9..32a03bbe6 100644
--- a/httemplate/edit/cust_main/basics.html
+++ b/httemplate/edit/cust_main/basics.html
@@ -25,22 +25,28 @@
function rescom_changed(what) {
if ( what.checked == (what.value == 'Commercial' ) ) {
- document.getElementById('company_row').style.display = '';
- document.getElementById('contacts_div').style.display = '';
- document.getElementById('spouse_row').style.display = 'none';
+ $('#company_label').slideDown();
+ $('#company_input').slideDown();
+ $('#contacts_div').slideDown();
+ $('#spouse_label').slideUp();
+ $('#spouse_last_input').slideUp();
+ $('#spouse_first_input').slideUp();
} else {
if ( document.getElementById('company').value.length == 0 ) {
- document.getElementById('company_row').style.display = 'none';
+ $('#company_label').slideUp();
+ $('#company_input').slideUp();
}
- document.getElementById('contacts_div').style.display = 'none';
- document.getElementById('spouse_row').style.display = '';
+ $('#contacts_div').slideUp();
+ $('#spouse_label').slideDown();
+ $('#spouse_last_input').slideDown();
+ $('#spouse_first_input').slideDown();
}
}
var ship_locked_agents = <% encode_json(\%ship_locked_agents) %>;
var ship_fields = [
- 'locationname', 'address1', 'city', 'state', 'zip', 'country',
+ 'locationname', 'address1',<% $conf->exists('cust_main-no_city_in_address') ? '' : q( 'city',) %> 'state', 'zip', 'country',
'latitude', 'longitude', 'district'
];
@@ -50,6 +56,7 @@
% # unlock/lock service location
var f = what.form;
+ var was_same = f['same'].checked;
if ( ship_locked_agents[agentnum] ) {
% # For this agent, the service location (except address2)
% # should be locked to the agent's location.
@@ -66,16 +73,25 @@
% # disabled, then they contain some agent's address, which is
% # no longer meaningful. So set them back to the customer's
% # current location.
+ var is_same = true;
for(var i=0; i<ship_fields.length; i++) {
x = ship_fields[i];
if ( f['ship_'+x].disabled ) {
f['ship_'+x].value = f['old_ship_'+x].value;
}
f['ship_'+x].disabled = false;
+ if ( f['bill_'+x].value != f['ship_'+x].value ) {
+ is_same = false;
+ }
}
+% # if the customer's current location has the same bill and ship
+% # address, then check the box
+ f['same'].checked = is_same;
f['same'].disabled = false;
}
- samechanged(f['same']);
+ if (f['same'].checked != was_same) {
+ samechanged(f['same']);
+ }
% # update sales dropdown
salesnum_agentnum_changed(what);
@@ -85,7 +101,13 @@
<&| /elements/onload.js &>
rescom_changed(document.getElementById('residential_commercial_Residential'));
agent_changed(document.getElementById('agentnum'));
- samechanged(document.getElementById('same'));
+
+ if ( $('#same').prop('checked') ) {
+ $('#div_ship_location').hide();
+ } else {
+ $('#div_ship_location').show();
+ }
+
</&>
</SCRIPT>
@@ -110,7 +132,7 @@
<INPUT TYPE="hidden" NAME="agentnum" ID="agentnum"
VALUE="<% $agentnum %>">
<TR>
- <TD ALIGN="right"><% mt('Agent') |h %></TD>
+ <TH ALIGN="right"><% mt('Agent') |h %></TD>
<TD CLASS="fsdisabled"><% $cust_main->agent->agent |h %></TD>
</TR>
@@ -118,7 +140,7 @@
<& /elements/tr-select-agent.html,
'curr_value' => $cust_main->agentnum,
- 'label' => "<B>${r}".emt('Agent')."</B>",
+ 'label' => $r. emt('Agent'),
'empty_label' => emt('Select agent'),
'disable_empty' => ( $cust_main->agentnum ? 1 : 0 ),
'viewall_right' => emt('None'),
@@ -131,7 +153,7 @@
% if ( $conf->exists('cust_main-edit_agent_custid') ) {
<TR>
- <TD ALIGN="right"><% mt('Customer identifier') |h %></TD>
+ <TH ALIGN="right"><% mt('Customer identifier') |h %></TD>
<TD><INPUT TYPE="text" NAME="agent_custid" VALUE="<% $cust_main->agent_custid %>"></TD>
</TR>
@@ -157,6 +179,7 @@
%#sales person
<& /elements/tr-select-sales.html,
'curr_value' => $cust_main->salesnum,
+ 'th' => 1,
&>
%# referral (advertising source)
@@ -169,7 +192,7 @@
<& /elements/tr-select-part_referral.html,
'curr_value' => $refnum,
- 'label' => "<B>${r}".emt('Advertising source')."</B>"
+ 'label' => $r. emt('Advertising source'),
&>
% }
@@ -183,7 +206,7 @@
%) {
<TR>
- <TD ALIGN="right"><% mt('Referring customer') |h %></TD>
+ <TH ALIGN="right"><% mt('Referring customer') |h %></TD>
<TD>
<A HREF="<% popurl(1) %>/cust_main.cgi?<% $cust_main->referral_custnum %>"><% $cust_main->referral_custnum %>: <% $referring_cust_main->name |h %></A>
</TD>
@@ -193,7 +216,7 @@
% } elsif ( ! $conf->exists('disable_customer_referrals') ) {
<TR>
- <TD ALIGN="right"><% mt('Referring customer') |h %></TD>
+ <TH ALIGN="right"><% mt('Referring customer') |h %></TD>
<TD>
<& /elements/search-cust_main.html,
'field_name' => 'referral_custnum',
@@ -284,7 +307,10 @@ foreach (qsearch('agent',{})) {
my $agent_ship_location = $cust_main->ship_location;
$ship_locked_agents{$agentnum} = +{
map { $_ => $agent_ship_location->$_ }
- qw(locationname address1 city state zip country latitude longitude district)
+ (
+ qw(locationname address1 state zip country latitude longitude district),
+ ($conf->exists('cust_main-no_city_in_address') ? () : 'city')
+ )
};
}
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html
index d25e88712..6f716c1be 100644
--- a/httemplate/edit/cust_main/billing.html
+++ b/httemplate/edit/cust_main/billing.html
@@ -15,7 +15,7 @@
<BR><FONT CLASS="fsinnerbox-title"><% mt('Billing information') |h %></FONT>
- <% &ntable("#cccccc") %>
+ <TABLE CLASS="fsinnerbox">
% my $curuser = $FS::CurrentUser::CurrentUser;
@@ -63,7 +63,7 @@
% #escape $exempt_group for NAME etc.
% my $checked = ($cust_main_exemption || $cgi->param("tax_$exempt_group"));
<TR>
- <TD>&nbsp;&nbsp;<INPUT TYPE="checkbox" NAME="tax_<% $exempt_group %>" ID="tax_<% $exempt_group %>" VALUE="Y" <% $checked ? 'CHECKED' : '' %> onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes)</TD>
+ <TD STYLE="white-space:nowrap">&nbsp;&nbsp;<INPUT TYPE="checkbox" NAME="tax_<% $exempt_group %>" ID="tax_<% $exempt_group %>" VALUE="Y" <% $checked ? 'CHECKED' : '' %> onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes)</TD>
<TD> - Exemption number <INPUT TYPE="text" NAME="tax_<% $exempt_group %>_num" ID="tax_<% $exempt_group %>_num" VALUE="<% $cgi->param("tax_$exempt_group".'_num') || ( $cust_main_exemption ? $cust_main_exemption->exempt_number : '' ) |h %>" <% $checked ? '' : 'DISABLED' %>></TD>
</TR>
% }
@@ -108,7 +108,7 @@
% unless ( $conf->exists('cust-email-high-visibility')) {
<TR>
- <TD ALIGN="right" WIDTH="200">
+ <TH ALIGN="right" WIDTH="200">
<% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
? $r : '' %>Email address(es)
</TD>
@@ -117,7 +117,7 @@
( $cust_main->message_noemail eq 'Y' )
? 'CHECKED'
: ''
- %>> <% emt('Do not send notices') %>
+ %>> <FONT SIZE="-1"><% emt('Do not send notices') %></FONT>
</TD>
</TR>
% }
@@ -128,11 +128,25 @@
% if ( $conf->exists('cust_main-select-prorate_day') ) {
<TR>
- <TD 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 %>">
% }
@@ -142,7 +156,7 @@
% ###
<TR>
- <TD ALIGN="right" WIDTH="200"><% mt('Charge card/e-check on this day of the month') |h %> </TD>
+ <TH ALIGN="right" WIDTH="200"><% mt('Charge card/e-check on this day of the month') |h %> </TD>
<TD>
<SELECT NAME="billday">
<% billday_options($cust_main->billday) %>
@@ -166,7 +180,7 @@
% ###
<TR>
- <TD ALIGN="right" WIDTH="200"><% mt('Invoice terms') |h %> </TD>
+ <TH ALIGN="right" WIDTH="200"><% mt('Invoice terms') |h %> </TD>
<TD WIDTH="408">
<& /elements/select-terms.html,
'curr_value' => $cust_main->invoice_terms,
@@ -180,7 +194,7 @@
% ###
<TR>
- <TD ALIGN="right" WIDTH="200"><% mt('Credit limit') |h %> </TD>
+ <TH ALIGN="right" WIDTH="200"><% mt('Credit limit') |h %> </TD>
<TD WIDTH="408">
<SCRIPT TYPE="text/javascript">
function toggle(obj) {
@@ -198,12 +212,14 @@ function toggle(obj) {
VALUE = 1
onClick="toggle(this)"
<% length($cust_main->credit_limit) ? '' : ' CHECKED'%>
- > <% $default_credit_limit
+ > <FONT SIZE="-1" COLOR="#333333">
+ <% $default_credit_limit
? "Default ($money_char". sprintf("%.2f", $default_credit_limit).
")"
: mt('Unlimited')
|h
- %>
+ %>
+ </FONT>
</TD>
</TR>
@@ -250,7 +266,7 @@ function toggle(obj) {
% if ( $show_term || $cust_main->cdr_termination_percentage ) {
<TR>
- <TD ALIGN="right"><% mt('CDR termination settlement') |h %></TD>
+ <TH ALIGN="right"><% mt('CDR termination settlement') |h %></TD>
<TD><INPUT TYPE = "text"
NAME = "cdr_termination_percentage"
SIZE = 6
diff --git a/httemplate/edit/cust_main/company.html b/httemplate/edit/cust_main/company.html
index 8a6ed0bbf..3341d8011 100644
--- a/httemplate/edit/cust_main/company.html
+++ b/httemplate/edit/cust_main/company.html
@@ -1,7 +1,8 @@
% my $cust_main = shift;
-<TR ID="company_row" <% $cust_main->company ? '' : 'STYLE="display:none"' %>>
- <TD ALIGN="right"><% mt('Company') |h %></TD>
- <TD COLSPAN=6><INPUT TYPE="text" NAME="company" ID="company" SIZE=60
+% my $style = $cust_main->company ? '' : 'STYLE="display:none"';
+<TR ID="company_row">
+ <TH ALIGN="right"><DIV ID="company_label" <%$style%>><% mt('Company') |h %></DIV></TD>
+ <TD COLSPAN=6><DIV ID="company_input" <%$style%>><INPUT TYPE="text" NAME="company" ID="company" SIZE=60
VALUE="<% $cust_main->company |h %>">
- </TD>
+ </DIV></TD>
</TR>
diff --git a/httemplate/edit/cust_main/contacts_new.html b/httemplate/edit/cust_main/contacts_new.html
index 9ccb45f6a..1171e7df4 100644
--- a/httemplate/edit/cust_main/contacts_new.html
+++ b/httemplate/edit/cust_main/contacts_new.html
@@ -1,12 +1,15 @@
<DIV ID="contacts_div" STYLE="display:<% $display %>">
+<BR>
<FONT CLASS="fsinnerbox-title">Contacts</FONT>
<% include('/edit/elements/edit.html',
- 'embed' => $opt{cust_main},
- 'table' => 'cust_main',
- 'labels' => { 'contactnum' => '', #'Contact',
- #'locationnum' => '&nbsp;',
- },
- 'fields' => [
+ 'embed' => $opt{cust_main},
+ 'table' => 'cust_main',
+ 'agent_virt' => 1,
+ 'html_table_class' => 'fsinnerbox',
+ 'labels' => { 'contactnum' => '', #'Contact',
+ #'locationnum' => '&nbsp;',
+ },
+ 'fields' => [
{ 'field' => 'contactnum',
'type' => 'contact',
'colspan' => 6,
@@ -17,7 +20,6 @@
'm2_error_callback' => $m2_error_callback,
},
],
- 'agent_virt' => 1,
)
%>
</DIV>
diff --git a/httemplate/edit/cust_main/cust_payby.html b/httemplate/edit/cust_main/cust_payby.html
index cf0ada982..589c6a77b 100644
--- a/httemplate/edit/cust_main/cust_payby.html
+++ b/httemplate/edit/cust_main/cust_payby.html
@@ -1,11 +1,13 @@
<% include('/edit/elements/edit.html',
- 'embed' => $opt{cust_main},
- 'tablenum' => 1,
- 'table' => 'cust_main',
- 'labels' => { 'custpaybynum' => '',
- #'locationnum' => '&nbsp;',
- },
- 'fields' => [
+ 'embed' => $opt{cust_main},
+ 'tablenum' => 1,
+ 'table' => 'cust_main',
+ 'agent_virt' => 1,
+ 'html_table_class' => 'fsinnerbox',
+ 'labels' => { 'custpaybynum' => '',
+ #'locationnum' => '&nbsp;',
+ },
+ 'fields' => [
{ 'field' => 'custpaybynum',
'type' => 'cust_payby',
'colspan' => 6,
@@ -16,7 +18,6 @@
'm2_error_callback' => $m2_error_callback,
},
],
- 'agent_virt' => 1,
)
%>
</DIV>
diff --git a/httemplate/edit/cust_main/fax.html b/httemplate/edit/cust_main/fax.html
index 237d4be44..c3e9917f4 100644
--- a/httemplate/edit/cust_main/fax.html
+++ b/httemplate/edit/cust_main/fax.html
@@ -1,5 +1,5 @@
% my $cust_main = shift;
<TR>
- <TD ALIGN="right"><% mt('Fax') |h %></TD>
+ <TH ALIGN="right"><% mt('Fax') |h %></TD>
<TD><INPUT TYPE="text" NAME="fax" VALUE="<% $cust_main->fax %>" SIZE=18></TD>
</TR>
diff --git a/httemplate/edit/cust_main/first_pkg.html b/httemplate/edit/cust_main/first_pkg.html
index ad118b4a9..6845b2c90 100644
--- a/httemplate/edit/cust_main/first_pkg.html
+++ b/httemplate/edit/cust_main/first_pkg.html
@@ -8,7 +8,7 @@
<BR>
<FONT CLASS="fsinnerbox-title"><% mt('First package') |h %></FONT>
- <% ntable("#cccccc") %>
+ <TABLE BORDER=0 CELLSPACING=0>
<TR>
<TD COLSPAN=2>
diff --git a/httemplate/edit/cust_main/first_pkg/svc_acct.html b/httemplate/edit/cust_main/first_pkg/svc_acct.html
index 717bf5025..8308af431 100644
--- a/httemplate/edit/cust_main/first_pkg/svc_acct.html
+++ b/httemplate/edit/cust_main/first_pkg/svc_acct.html
@@ -1,7 +1,7 @@
-<% ntable("#cccccc") %>
+<TABLE CLASS="fsinnerbox">
<TR>
- <TD ALIGN="right"><% mt('Username') |h %></TD>
+ <TH ALIGN="right"><% mt('Username') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "username"
@@ -13,7 +13,7 @@
</TR>
<TR>
- <TD ALIGN="right"><% mt('Domain') |h %></TD>
+ <TH ALIGN="right"><% mt('Domain') |h %></TD>
<TD>
<SELECT NAME="domsvc">
<OPTION>(<% mt('none') |h %>)</OPTION>
@@ -22,7 +22,7 @@
</TR>
<TR>
- <TD ALIGN="right"><% mt('Password') |h %></TD>
+ <TH ALIGN="right"><% mt('Password') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password"
@@ -37,7 +37,7 @@
% if ( $opt{'password_verify'} ) {
<TR>
- <TD ALIGN="right"><% mt('Re-enter Password') |h %></TD>
+ <TH ALIGN="right"><% mt('Re-enter Password') |h %></TD>
<TD>
<INPUT TYPE = "text"
NAME = "_password2"
@@ -50,7 +50,7 @@
% if ( $conf->exists('security_phrase') ) {
<TR>
- <TD ALIGN="right"><% mt('Security Phrase') |h %></TD>
+ <TH ALIGN="right"><% mt('Security Phrase') |h %></TD>
<TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} |h %>">
</TD>
</TR>
@@ -62,7 +62,7 @@
<INPUT TYPE="hidden" NAME="popnum" VALUE="">
% } else {
<TR>
- <TD ALIGN="right"><% mt('Access number') |h %></TD>
+ <TH ALIGN="right"><% mt('Access number') |h %></TD>
%# XXX should gain "area code" selection and labels on the dropdowns
<TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD>
</TR>
diff --git a/httemplate/edit/cust_main/first_pkg/svc_dsl.html b/httemplate/edit/cust_main/first_pkg/svc_dsl.html
index 971f4be33..31f4b5c63 100644
--- a/httemplate/edit/cust_main/first_pkg/svc_dsl.html
+++ b/httemplate/edit/cust_main/first_pkg/svc_dsl.html
@@ -1,4 +1,4 @@
-<% ntable("#cccccc") %>
+<TABLE CLASS="fsinnerbox">
% if ( $opt{'phonenum'} ) {
@@ -6,12 +6,12 @@
<INPUT TYPE="hidden" NAME="phonenum" VALUE="<% $opt{'phonenum'} %>">
<TR>
- <TD ALIGN="right">Loop Type</TD>
+ <TH ALIGN="right">Loop Type</TD>
<TD BGCOLOR="#eeeeee">Line-share</TD>
</TR>
<TR>
- <TD ALIGN="right">Phone Number</TD>
+ <TH ALIGN="right">Phone Number</TD>
<TD BGCOLOR="#eeeeee"><% $opt{'phonenum'} %></TD>
</TR>
@@ -21,14 +21,14 @@
<INPUT TYPE="hidden" NAME="phonenum" VALUE="">
<TR>
- <TD ALIGN="right">Loop Type</TD>
+ <TH ALIGN="right">Loop Type</TD>
<TD BGCOLOR="#eeeeee">Standalone</TD>
</TR>
% }
<TR>
- <TD ALIGN="right">PPPoE password</TD>
+ <TH ALIGN="right">PPPoE password</TD>
<TD>
<INPUT TYPE = "text"
NAME = "password"
@@ -38,7 +38,7 @@
</TR>
<TR>
- <TD ALIGN="right">ISP Changing?</TD>
+ <TH ALIGN="right">ISP Changing?</TD>
<TD>
<INPUT TYPE = "checkbox"
NAME = "isp_chg"
@@ -49,7 +49,7 @@
</TR>
<TR>
- <TD ALIGN="right">Current or Previous ISP</TD>
+ <TH ALIGN="right">Current or Previous ISP</TD>
<TD>
<INPUT TYPE = "text"
NAME = "isp_prev"
@@ -60,7 +60,7 @@
<INPUT TYPE="hidden" NAME="vendor_qual_id" VALUE="<% $opt{'vendor_qual_id'} %>">
<TR>
- <TD ALIGN="right">Vendor Qualification ID</TD>
+ <TH ALIGN="right">Vendor Qualification ID</TD>
<TD BGCOLOR="#eeeeee"><% $opt{'vendor_qual_id'} %></TD>
</TR>
diff --git a/httemplate/edit/cust_main/first_pkg/svc_phone.html b/httemplate/edit/cust_main/first_pkg/svc_phone.html
index 70e013ece..65c677847 100644
--- a/httemplate/edit/cust_main/first_pkg/svc_phone.html
+++ b/httemplate/edit/cust_main/first_pkg/svc_phone.html
@@ -1,8 +1,8 @@
-<% ntable("#cccccc") %>
+<TABLE CLASS="fsinnerbox">
%#XXX this should be hidden or something in most/all cases
<TR>
- <TD ALIGN="right" ID="countrycode_label_td">Country code</TD>
+ <TH ALIGN="right" ID="countrycode_label_td">Country code</TD>
<TD ID="countrycode_td">
<INPUT TYPE = "text"
NAME = "countrycode"
@@ -21,7 +21,7 @@
%# )
%#%>
<TR>
- <TD ALIGN="right" ID="phonenum_label_td">Phone Number</TD>
+ <TH ALIGN="right" ID="phonenum_label_td">Phone Number</TD>
<TD ID="phonenum_td">
<INPUT TYPE = "text"
NAME = "phonenum"
@@ -34,7 +34,7 @@
</TR>
<TR>
- <TD ALIGN="right" ID="sip_password_label_td">SIP password</TD>
+ <TH ALIGN="right" ID="sip_password_label_td">SIP password</TD>
<TD ID="sip_password_td">
<INPUT TYPE = "text"
NAME = "sip_password"
@@ -46,7 +46,7 @@
</TR>
<TR>
- <TD ALIGN="right" ID="pin_label_td">Voicemail PIN</TD>
+ <TH ALIGN="right" ID="pin_label_td">Voicemail PIN</TD>
<TD ID="pin_td">
<INPUT TYPE = "text"
NAME = "pin"
@@ -60,7 +60,7 @@
%#XXX this should be hidden or something in most/all cases
<TR>
- <TD ALIGN="right" ID="phone_name_label_td">Name</TD>
+ <TH ALIGN="right" ID="phone_name_label_td">Name</TD>
<TD ID="phone_name_td">
<INPUT TYPE = "text"
NAME = "phone_name"
diff --git a/httemplate/edit/cust_main/name.html b/httemplate/edit/cust_main/name.html
index 74b2a7b5b..13bd09764 100644
--- a/httemplate/edit/cust_main/name.html
+++ b/httemplate/edit/cust_main/name.html
@@ -1,13 +1,13 @@
<%def .namepart>
% my ($field, $value, $label, $extra) = @_;
-<DIV STYLE="display: inline-block">
+<DIV STYLE="display: inline-block" ID="<% $field %>_input">
<INPUT TYPE="text" NAME="<% $field %>" VALUE="<% $value |h %>" <%$extra%>>
- <BR><FONT SIZE=-1><% mt($label) %></FONT>
+ <BR><FONT SIZE="-1" COLOR="#333333"><% mt($label) %></FONT>
</DIV>
</%def>
<TR>
- <TD CLASS="required label"><% mt('Contact name') |h %></TD>
+ <TH CLASS="required label" ALIGN="right"><% mt('Contact name') |h %></TD>
<TD COLSPAN=6 STYLE="vertical-align:top">
<& .namepart, 'last', $cust_main->last, 'Last', ',' &>
<& .namepart, 'first', $cust_main->first, 'First' &>
@@ -21,7 +21,7 @@
</TR>
% if ( $conf->exists('cust_main-enable_spouse') ) {
<TR ID="spouse_row">
- <TD CLASS="label"><% mt('Spouse\'s name') |h %></TD>
+ <TH CLASS="label" ALIGN="right"><DIV ID="spouse_label"><% mt('Spouse\'s name') |h %></DIV></TD>
<TD COLSPAN=6>
<& .namepart, 'spouse_last', $cust_main->spouse_last, 'Last', ',' &>
<& .namepart, 'spouse_first', $cust_main->spouse_first, 'First' &>
@@ -31,7 +31,7 @@
% if ( $conf->exists('cust-email-high-visibility') ) {
<TR>
- <TD ALIGN="right" CLASS="
+ <TH ALIGN="right" CLASS="
<% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
? 'required label'
: 'label' %>">Email address(es)
diff --git a/httemplate/edit/cust_main/phones.html b/httemplate/edit/cust_main/phones.html
index 9b23e0716..fa915f540 100644
--- a/httemplate/edit/cust_main/phones.html
+++ b/httemplate/edit/cust_main/phones.html
@@ -1,5 +1,5 @@
<TR>
- <TD VALIGN="top" ALIGN="right"><% mt('Phones') |h %></TD>
+ <TH VALIGN="top" ALIGN="right"><% mt('Phones') |h %></TD>
<TD COLSPAN=6>
<TABLE CELLSPACING=0 CELLPADDING=0>
<TR>
@@ -10,7 +10,7 @@
VALUE="<% $cust_main->get($phone) %>"
SIZE=18
>
- <BR><FONT SIZE=-1><% mt($phone_label{$phone}) |h %></FONT>
+ <BR><FONT SIZE=-1 COLOR="#333333"><% mt($phone_label{$phone}) |h %></FONT>
</TD>
<TD>&nbsp;</TD>
% }