% 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);
% } elsif ( $field eq 'selfservice_access' || $field eq 'comment' ) {
% $value = $X_contact->get($field);
% } else {
% $value = $contact->get($field);
% }
% if ( $field eq 'selfservice_access' ) {
% } else {
"
<% $onchange %>
>
% }
<% $label{$field} %> |
% }