2 % my ($field, $value, $label, $extra) = @_;
3 <DIV STYLE="display: inline-block" ID="<% $field %>_input">
4 <INPUT TYPE="text" NAME="<% $field %>" VALUE="<% $value |h %>" <%$extra%>>
5 <BR><FONT SIZE="-1" COLOR="#333333"><% emt($label) %></FONT>
10 <TH CLASS="required label" ALIGN="right"><% mt('Contact name') |h %></TD>
11 <TD COLSPAN=6 STYLE="vertical-align:top">
12 <& .namepart, 'last', $cust_main->last, 'Last', ',' &>
13 <& .namepart, 'first', $cust_main->first, 'First' &>
14 % if ( $conf->exists('show_ss') ) {
16 <& .namepart, 'ss', $ss, 'SS#', "SIZE=11" &>
18 <INPUT TYPE="hidden" NAME="ss" VALUE="<% $ss %>">
22 % if ( $conf->exists('cust_main-enable_spouse') ) {
24 <TH CLASS="label" ALIGN="right"><DIV ID="spouse_label"><% mt('Spouse\'s name') |h %></DIV></TD>
26 <& .namepart, 'spouse_last', $cust_main->spouse_last, 'Last', ',' &>
27 <& .namepart, 'spouse_first', $cust_main->spouse_first, 'First' &>
34 <SPAN ID="invoice_email_label" CLASS="
35 <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum)
37 : 'label' %>">Email address(es)</SPAN>
40 <INPUT TYPE="text" NAME="invoice_email" ID="invoice_email_input" SIZE=40
41 VALUE="<% $cust_main->invoicing_list_emailonly_scalar %>">
45 my $cust_main = shift;
46 my $agentnum = $cust_main->agentnum if $cust_main->custnum;
47 my $conf = FS::Conf->new;
50 if ( $cgi->param('error') or $conf->exists('unmask_ss') ) {
53 $ss = $cust_main->masked('ss');