2 % my ($field, $value, $label, $extra, $unmask_field) = @_;
3 <DIV STYLE="display: inline-block" ID="<% $field %>_input">
4 <INPUT TYPE="text" NAME="<% $field %>" VALUE="<% $value |h %>" <%$extra%>>
8 % && !$unmask_field->{unmask_ss}
9 % && $FS::CurrentUser::CurrentUser->access_right( $unmask_field->{access_right} )
11 <& /elements/link-replace_element_text.html, {
12 target_id => $unmask_field->{target_id},
13 replace_text => $unmask_field->{replace_text},
16 <BR><FONT SIZE="-1" COLOR="#333333"><% emt($label) %></FONT>
21 <TH CLASS="required label" ALIGN="right"><% mt('Contact name') |h %></TD>
22 <TD COLSPAN=6 STYLE="vertical-align:top">
23 <& .namepart, 'last', $cust_main->last, 'Last', ',' &>
24 <& .namepart, 'first', $cust_main->first, 'First' &>
25 % if ( $conf->exists('show_ss') ) {
27 <& .namepart, 'ss', $ss, 'SS#', "SIZE=11 ID='ss'", {
29 replace_text => $cust_main->ss,
30 access_right => 'Unmask customer SSN',
31 unmask_ss => $conf->exists('unmask_ss'),
34 <INPUT TYPE="hidden" NAME="ss" VALUE="<% $ss %>">
38 % if ( $conf->exists('cust_main-enable_spouse') ) {
40 <TH CLASS="label" ALIGN="right"><DIV ID="spouse_label"><% mt('Spouse\'s name') |h %></DIV></TD>
42 <& .namepart, 'spouse_last', $cust_main->spouse_last, 'Last', ',' &>
43 <& .namepart, 'spouse_first', $cust_main->spouse_first, 'First' &>
50 <SPAN ID="invoice_email_label" CLASS="
51 <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
53 : 'label' %>">Email address(es)</SPAN>
56 <INPUT TYPE="text" NAME="invoice_email" ID="invoice_email_input" SIZE=40
57 VALUE="<% $cust_main->invoicing_list_emailonly_scalar %>">
61 my $cust_main = shift;
62 my $agentnum = $cust_main->agentnum if $cust_main->custnum;
63 my $conf = FS::Conf->new;
66 if ( $cgi->param('error') or $conf->exists('unmask_ss') ) {
69 $ss = $cust_main->masked('ss');