X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Ftickets.html;h=f076fcc927afc306f160561bd02943058f87b3db;hb=5214a5560240667a3a914c45df046b420926a5ec;hp=eea5a7f98863ada247d4e3aead6a892ccecfbc18;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git
diff --git a/httemplate/view/cust_main/tickets.html b/httemplate/view/cust_main/tickets.html
index eea5a7f98..f076fcc92 100644
--- a/httemplate/view/cust_main/tickets.html
+++ b/httemplate/view/cust_main/tickets.html
@@ -1,118 +1,2 @@
-
-
-
-(View <% $openlabel %> tickets for this customer)
-(View resolved tickets for this customer)
-
-
-<% include("/elements/table-grid.html") %>
-% my $bgcolor1 = '#eeeeee';
-% my $bgcolor2 = '#ffffff';
-% my $bgcolor = '';
-
-
- # |
- Subject |
- Status |
- Queue |
- Owner |
- Priority |
-
-
-% foreach my $ticket ( @tickets ) {
-% my $href = FS::TicketSystem->href_ticket($ticket->{id});
-% if ( $bgcolor eq $bgcolor1 ) {
-% $bgcolor = $bgcolor2;
-% } else {
-% $bgcolor = $bgcolor1;
-% }
-
-
-
-
- ><% $ticket->{id} %>
- |
-
-
- ><% $ticket->{subject} %>
- |
-
-
- <% $ticket->{status} %>
- |
-
-
- <% $ticket->{queue} %>
- |
-
-
- <% $ticket->{owner} %>
- |
-
-
- <% $ticket->{content}
- ? $ticket->{content}.' ('.$ticket->{priority}.')'
- : $ticket->{priority}
- %>
- |
-
-
-
-% }
-
-
-
-<%init>
-
-my( $conf ) = new FS::Conf;
-my( $cust_main ) = @_;
-my( @tickets ) = $cust_main->tickets;
-
-my $open_link = FS::TicketSystem->href_customer_tickets($cust_main->custnum);
-my $openlabel = join('/', FS::TicketSystem->statuses );
-
-my $res_link = FS::TicketSystem->href_customer_tickets(
- $cust_main->custnum,
- { 'statuses' => [ 'resolved' ] }
- );
-
-my( $new_base, %new_param ) = FS::TicketSystem->href_params_new_ticket(
- $cust_main,
- join(', ', $cust_main->invoicing_list_emailonly ) );
-
-my $new_link = FS::TicketSystem->href_new_ticket(
- $cust_main,
- join(', ', $cust_main->invoicing_list_emailonly )
- );
-
-%init>
+% my $cust_main = shift;
+<& /elements/table-tickets.html, object => $cust_main &>