% unless ( $opt{'js_only'} ) {
Type |
% } else {
% }
%
% foreach my $field ( @fields ) {
%
% my $value = '';
% if ( $field =~ /^phonetypenum(\d+)$/ ) {
% my $contact_phone = qsearchs('contact_phone', {
% 'contactnum' => $curr_value,
% 'phonetypenum' => $1,
% });
% if ( $contact_phone ) {
% $value = $contact_phone->phonenum_pretty;
% $value .= 'x'.$contact_phone->extension
% if $contact_phone->extension;
% $value = '+'. $contact_phone->countrycode. " $value"
% if $contact_phone->countrycode
% && $contact_phone->countrycode ne '1';
% }
% } elsif ( $field eq 'emailaddress' ) {
% $value = join(', ', map $_->emailaddress, $contact->contact_email);
% } else {
% $value = $contact->get($field);
% }
% if ( $field eq 'selfservice_access' ) {
% } else {
"
<% $onchange %>
>
% }
<% $label{$field} %> |
% }
% my $pwd_change_label = 'change password';
% $pwd_change_label = 'setup password' unless $contact->_password;
% if ($curr_value) {
<& /elements/change_password.html,
'contact_num' => $curr_value,
'custnum' => $opt{'custnum'},
'curr_value' => '',
'label' => $pwd_change_label,
&>
Password |
% }