X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Ftickets.html;h=2175110e4f95a2cd80db83b659778720b029338a;hb=dbe1f22d63052dbbfe8b3cb578a0d831213ebb75;hp=c4183ae55eb2e39e7168d876a9eb58146f8ca385;hpb=1293d137b061f097190eda53e4e78214e18832e6;p=freeside.git
diff --git a/httemplate/view/cust_main/tickets.html b/httemplate/view/cust_main/tickets.html
index c4183ae55..2175110e4 100644
--- a/httemplate/view/cust_main/tickets.html
+++ b/httemplate/view/cust_main/tickets.html
@@ -1,28 +1,54 @@
-%
-% my( $cust_main ) = @_;
-% my( @tickets ) = $cust_main->tickets;
-%
-
-Tickets
+
-(View all tickets for this customer)
-(New ticket for this customer)
+(<% mt("View $openlabel tickets for this customer") |h %>)
+(<% mt('View resolved tickets for this customer') |h %>)
+
-<% include("/elements/table-grid.html") %>
+<& /elements/table-grid.html &>
% my $bgcolor1 = '#eeeeee';
% my $bgcolor2 = '#ffffff';
% my $bgcolor = '';
-%
-
- # |
- Subject |
- Priority |
- Queue |
- Status |
+ <% mt('#') |h %> |
+ <% mt('Subject') |h %> |
+ <% mt('Status') |h %> |
+ <% mt('Queue') |h %> |
+ <% mt('Owner') |h %> |
+ <% mt('Priority') |h %> |
+
% foreach my $ticket ( @tickets ) {
% my $href = FS::TicketSystem->href_ticket($ticket->{id});
% if ( $bgcolor eq $bgcolor1 ) {
@@ -30,24 +56,59 @@
% } 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} %> |
+<%init>
- <% $ticket->{name} %> |
+my( $conf ) = new FS::Conf;
+my( $cust_main ) = @_;
+my( @tickets ) = $cust_main->tickets;
- <% $ticket->{status} %> |
+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 );
-
+my $new_link = FS::TicketSystem->href_new_ticket( $cust_main );
+%init>