X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=979c26b49654210cf46a5c9379ee43e66e387b80;hb=2713274c36a5f7688810241157ff9cd2a3b87b1f;hp=2023a6cfe0c83fa57a925cf391fc0315f2d7dd3f;hpb=2e928dafa3cf6383ea9e97f48af61af05e5a292a;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 2023a6cfe..979c26b49 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -2,18 +2,74 @@ -
+ + 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);
+% }
+
- get($field) |h %>"
- <% $onchange %>
- > - <% $label{$field} %> +% if ( $field eq 'selfservice_access' ) { + + +% } else { + " + <% $onchange %> + > +% } + + <% $label{$field} %> |
% }