From 747ec338dfc42dc308ecad7406ae09ec06690308 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 24 Jan 2008 21:19:52 +0000 Subject: slightly more sane names for customer tickets hash, display ticket owners on customer view page --- httemplate/view/cust_main/tickets.html | 58 +++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 12 deletions(-) (limited to 'httemplate') diff --git a/httemplate/view/cust_main/tickets.html b/httemplate/view/cust_main/tickets.html index 4f7a231e4..d62addc5d 100644 --- a/httemplate/view/cust_main/tickets.html +++ b/httemplate/view/cust_main/tickets.html @@ -57,24 +57,58 @@ % } else { % $bgcolor = $bgcolor1; % } -% - - + + + + ><% $ticket->{id} %> + + + + ><% $ticket->{subject} %> + + + + <% $ticket->{status} %> + + + + <% $ticket->{queue} %> + + + + <% $ticket->{owner} %> + + + + <% $ticket->{content} + ? $ticket->{content}.' ('.$ticket->{priority}.')' + : $ticket->{priority} + %> + + + - ><% $ticket->{id} %> - - ><% $ticket->{subject} %> +% } - <% $ticket->{content} || $ticket->{priority} %> + - <% $ticket->{name} %> +<%init> - <% $ticket->{status} %> +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_link = FS::TicketSystem->href_new_ticket( + $cust_main, + join(', ', $cust_main->invoicing_list_emailonly ) + ); + -- cgit v1.2.1