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 % && $FS::CurrentUser::CurrentUser->access_right( $unmask_field->{access_right} )
10 <& /elements/link-replace_element_text.html, {
11 target_id => $unmask_field->{target_id},
12 replace_text => $unmask_field->{replace_text},
15 <BR><FONT SIZE="-1" COLOR="#333333"><% emt($label) %></FONT>
20 <TH CLASS="required label" ALIGN="right"><% mt('Contact name') |h %></TD>
21 <TD COLSPAN=6 STYLE="vertical-align:top">
22 <& .namepart, 'last', $cust_main->last, 'Last', ',' &>
23 <& .namepart, 'first', $cust_main->first, 'First' &>
24 % if ( $conf->exists('show_ss') ) {
26 <& .namepart, 'ss', $ss, 'SS#', "SIZE=11 ID='ss'", {
28 replace_text => $cust_main->ss,
29 access_right => 'Unmask customer SSN',
32 <INPUT TYPE="hidden" NAME="ss" VALUE="<% $ss %>">
36 % if ( $conf->exists('cust_main-enable_spouse') ) {
38 <TH CLASS="label" ALIGN="right"><DIV ID="spouse_label"><% mt('Spouse\'s name') |h %></DIV></TD>
40 <& .namepart, 'spouse_last', $cust_main->spouse_last, 'Last', ',' &>
41 <& .namepart, 'spouse_first', $cust_main->spouse_first, 'First' &>
48 <SPAN ID="invoice_email_label" CLASS="
49 <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
51 : 'label' %>">Email address(es)</SPAN>
54 <INPUT TYPE="text" NAME="invoice_email" ID="invoice_email_input" SIZE=40
55 VALUE="<% $cust_main->invoicing_list_emailonly_scalar %>">
59 my $cust_main = shift;
60 my $agentnum = $cust_main->agentnum if $cust_main->custnum;
61 my $conf = FS::Conf->new;
64 if ( $cgi->param('error') ) {
67 $ss = $cust_main->masked('ss');