X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fname.html;h=120475b92b4697828ab826e1a25501d560d8aa41;hp=bc55801cf5d973f948c752d782f8170c3f468800;hb=7bf6dafb0da4a525388a6f145dd0a904eddcec14;hpb=b6260b4f39cf34b9e0e5b8560ef88c8881ba0766 diff --git a/httemplate/edit/cust_main/name.html b/httemplate/edit/cust_main/name.html index bc55801cf..120475b92 100644 --- a/httemplate/edit/cust_main/name.html +++ b/httemplate/edit/cust_main/name.html @@ -1,8 +1,19 @@ <%def .namepart> -% my ($field, $value, $label, $extra) = @_; -
+% my ($field, $value, $label, $extra, $unmask_field) = @_; +
> -
<% mt($label) %> +% if ( +% $value +% && ref $unmask_field +% && !$unmask_field->{unmask_ss} +% && $FS::CurrentUser::CurrentUser->access_right( $unmask_field->{access_right} ) +% ) { + <& /elements/link-replace_element_text.html, { + target_id => $unmask_field->{target_id}, + replace_text => $unmask_field->{replace_text}, + } &> +% } +
<% emt($label) %>
@@ -13,7 +24,12 @@ <& .namepart, 'first', $cust_main->first, 'First' &> % if ( $conf->exists('show_ss') ) {   - <& .namepart, 'ss', $ss, 'SS#', "SIZE=11" &> + <& .namepart, 'ss', $ss, 'SS#', "SIZE=11 ID='ss'", { + target_id => 'ss', + replace_text => $cust_main->ss, + access_right => 'Unmask customer SSN', + unmask_ss => $conf->exists('unmask_ss'), + } &> % } else { % } @@ -21,7 +37,7 @@ % if ( $conf->exists('cust_main-enable_spouse') ) { - <% mt('Spouse\'s name') |h %> +
<% mt('Spouse\'s name') |h %>
<& .namepart, 'spouse_last', $cust_main->spouse_last, 'Last', ',' &> <& .namepart, 'spouse_first', $cust_main->spouse_first, 'First' &> @@ -29,19 +45,18 @@ % } -% if ( $conf->exists('cust-email-high-visibility') ) { - + Email address(es) - - - ">Email address(es) + + + -% } <%init> my $cust_main = shift; my $agentnum = $cust_main->agentnum if $cust_main->custnum;