% unless ( $opt{'js_only'} ) {
% } 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; % $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); % } |
"
<% $onchange %>
> <% $label{$field} %> |
% }