X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fqueue.html;h=22032b13c13d16707e9dd261fea3611821f109e9;hp=e5f7aed6adebad966431128094f349789817eb6d;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=624b2d44625f69d71175c3348cae635d580c890b diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index e5f7aed6a..22032b13c 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,10 +1,10 @@ -<% include( 'elements/search.html', +<& elements/search.html, 'title' => 'Job Queue', 'name' => 'jobs', 'html_form' => qq!
!, 'query' => { 'table' => 'queue', 'hashref' => $hashref, - 'extra_sql' => 'ORDER BY jobnum', + 'order_by' => 'ORDER BY jobnum', }, 'count_query' => $count_query, 'header' => [ '#', @@ -13,6 +13,7 @@ 'Date', 'Status', 'Account', # unless $hashref->{'svcnum'} + 'Employee', '', # checkbox column ], 'fields' => [ @@ -78,6 +79,11 @@ }, sub { my $queue = shift; + my $access_user = $queue->access_user; + return $access_user ? $access_user->username : ''; + }, + sub { + my $queue = shift; my $jobnum = $queue->jobnum; my $status = $queue->status; my $changable = $dangerous @@ -120,9 +126,8 @@ ''; } }, - ) - -%> + +&> <%init> die "access denied"