-<A HREF="<%$p%>/edit/cust_main-contacts.html?<% $cust_main->custnum %>">Edit contacts</A>
-<TABLE CLASS="fsinnerbox">
-% foreach my $contact ( @contacts ) {
-% #XXX maybe this should be a table with alternating colors instead
+
+<& /elements/table-grid.html &>
+<THEAD>
+% my $th = '<TH CLASS="grid" ALIGN="left">';
+<TR>
+ <%$th%>Type</TH>
+ <%$th%>Contact</TH>
+ <%$th%>Email</TH>
+ <%$th%>Send invoices</TH>
+ <%$th%>Send messages</TH>
+ <%$th%>Self-service</TH>
+% foreach my $phone_type (@phone_type) {
+ <%$th%><% $phone_type->typename |h %></TH>
+% }
+ <%$th%>Comment</TH>
+</TR>
+</THEAD>
+
+% my $bgcolor1 = '#ffffff';
+% my $bgcolor2 = '#eeeeee';
+% my $bgcolor = $bgcolor2;
+% foreach my $cust_contact ( @cust_contacts ) {
+% my $contact = $cust_contact->contact;
+% my $td = qq(<TD CLASS="grid" BGCOLOR="$bgcolor">);
+