X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts_new.html;h=155490fe194a13a9afae5ab9488c70d30de35356;hb=83f70978574fef3401020cb11cf651d12c139b3b;hp=bd812c7e7f14e4f3bab08612b21c9833dfd371f0;hpb=798cf217a0d14520c5648560ef8a3095ffcfad27;p=freeside.git diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index bd812c7e7..155490fe1 100644 --- a/httemplate/view/cust_main/contacts_new.html +++ b/httemplate/view/cust_main/contacts_new.html @@ -1,17 +1,44 @@ -% if ( @contacts ) {
-Contacts -<% ntable("#cccccc",2) %> +Contacts +Edit contacts + % foreach my $contact ( @contacts ) { +% #XXX maybe this should be a table with alternating colors instead - + + +% my @contact_email = $contact->contact_email; +% if (@contact_email) { + + +% } + +% foreach my $phone_type (@phone_type) { +% my $contact_phone = +% qsearchs('contact_phone', { +% 'contactnum' => $contact->contactnum, +% 'phonetypenum' => $phone_type->phonetypenum, +% }) +% or next; + + +% } + +% if ( $contact->comment ) { + + + +% } + % }
Contact<% $contact->contact_classname %> Contact <% $contact->line %>   Email<% join(', ', map $_->emailaddress, @contact_email) %>   <% $phone_type->typename %> phone<% $contact_phone->phonenum |h %>   Comment<% $contact->comment |h %>
+<%once> -% } +my @phone_type = qsearch({table=>'phone_type', order_by=>'weight'}); + <%init> my( $cust_main ) = @_;