X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fcontacts_new.html;h=f73483ae1e0d031f963a418ff8f9d69f4d1116d5;hb=5328d7183e79a507d83443e6fb4e1b31a1fd1624;hp=bd812c7e7f14e4f3bab08612b21c9833dfd371f0;hpb=b5c4237a34aef94976bc343c8d9e138664fc3984;p=freeside.git
diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html
index bd812c7e7..f73483ae1 100644
--- a/httemplate/view/cust_main/contacts_new.html
+++ b/httemplate/view/cust_main/contacts_new.html
@@ -1,17 +1,63 @@
-% if ( @contacts ) {
-Contacts
-<% ntable("#cccccc",2) %>
+Contacts
+Edit contacts
+
+<& /elements/table-grid.html &>
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = $bgcolor2;
+
+ Type |
+ Contact |
+ Email |
+ Self-service |
+% foreach my $phone_type (@phone_type) {
+ <% $phone_type->typename |h %> phone
+% }
+ |
+
% foreach my $contact ( @contacts ) {
- Contact |
- <% $contact->line %> |
+ <% $contact->contact_classname |h %> |
+ <% $contact->line |h %> |
+
+% my @contact_email = $contact->contact_email;
+ <% join(', ', map $_->emailaddress, @contact_email) %> |
+
+
+% if ( $contact->selfservice_access ) {
+ Enabled
+%# disable
+%# re-email
+% } else {
+ Disabled
+%# enable
+% }
+ |
+
+% foreach my $phone_type (@phone_type) {
+% my $contact_phone =
+% qsearchs('contact_phone', {
+% 'contactnum' => $contact->contactnum,
+% 'phonetypenum' => $phone_type->phonetypenum,
+% });
+ <% $contact_phone ? $contact_phone->phonenum_pretty : '' |h %> |
+% }
+
+
+% if ( $bgcolor eq $bgcolor1 ) {
+% $bgcolor = $bgcolor2;
+% } else {
+% $bgcolor = $bgcolor1;
+% }
% }
+<%once>
-% }
+my @phone_type = qsearch({table=>'phone_type', order_by=>'weight'});
+%once>
<%init>
my( $cust_main ) = @_;