X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftable-tickets.html;h=9247e58c6b3a3f7bc4f931c1ab0ff94073edee07;hb=e0b82c355d234a29f73e032403d9a022b4996779;hp=f89f984225aa5733571d6a692b676ef710855ca8;hpb=3d0a1bb06b895c5be6e3f0517d355442a6b1e125;p=freeside.git diff --git a/httemplate/elements/table-tickets.html b/httemplate/elements/table-tickets.html index f89f98422..9247e58c6 100644 --- a/httemplate/elements/table-tickets.html +++ b/httemplate/elements/table-tickets.html @@ -5,12 +5,16 @@ View <% mt('resolved') |h %>
+% if ( @tickets ) { + <& /elements/table-grid.html &> % my $bgcolor1 = '#eeeeee'; % my $bgcolor2 = '#ffffff'; % my $bgcolor = ''; + + <% mt('#') |h %> <% mt('Subject') |h %> <% mt('Status') |h %> @@ -26,6 +30,7 @@ View <% mt('Service') |h %> % } + % foreach my $ticket ( @tickets ) { % my $href = FS::TicketSystem->href_ticket($ticket->{id}); @@ -38,11 +43,21 @@ View +% if ( $ticket->{is_unreplied} ) { + > +% } else { +% # placeholder + + + + ><% $ticket->{id} %> - ><% $ticket->{subject} %> + ><% $ticket->{subject} |h %> @@ -54,7 +69,7 @@ View - <% $ticket->{owner} %> + <% $ticket->{owner} |h %> @@ -69,12 +84,13 @@ View <% $ticket->{content} ? $ticket->{content}.' ('.$ticket->{priority}.')' : $ticket->{priority} + |h %> % if ( $ss_priority ) { - <% $ticket->{"CF.{$ss_priority}"} %> + <% $ticket->{"CF.{$ss_priority}"} |h %> % } % if ( $object->isa('FS::cust_main') ) { @@ -91,6 +107,8 @@ View % } +%} + <%init>