From f8a8f142236a338fde4b733df48e022d19748c88 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 24 Jan 2008 21:16:42 +0000 Subject: slightly more sane names for customer tickets hash, display ticket owners on customer view page --- httemplate/view/cust_main/tickets.html | 77 +++++++++++++++++++++++----------- 1 file changed, 53 insertions(+), 24 deletions(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/tickets.html b/httemplate/view/cust_main/tickets.html index c9c3b6d1b..b5d581d50 100644 --- a/httemplate/view/cust_main/tickets.html +++ b/httemplate/view/cust_main/tickets.html @@ -1,30 +1,25 @@ -% -% my( $cust_main ) = @_; -% my( @tickets ) = $cust_main->tickets; -% - Tickets
-(View <% join('/', FS::TicketSystem->statuses ) %> tickets for this customer) -(View resolved tickets for this customer) +(View <% $openlabel %> tickets for this customer) +(View resolved tickets for this customer)
-(Create new ticket for this customer) +(Create new ticket for this customer) <% include("/elements/table-grid.html") %> % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; -% - # Subject - Priority - Queue Status + Queue + Owner + Priority + % foreach my $ticket ( @tickets ) { % my $href = FS::TicketSystem->href_ticket($ticket->{id}); % if ( $bgcolor eq $bgcolor1 ) { @@ -32,24 +27,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} %> +<%init> - <% $ticket->{content} || $ticket->{priority} %> +my( $cust_main ) = @_; +my( @tickets ) = $cust_main->tickets; - <% $ticket->{name} %> +my $open_link = FS::TicketSystem->href_customer_tickets($cust_main->custnum); +my $openlabel = join('/', FS::TicketSystem->statuses ); - <% $ticket->{status} %> +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