X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fsearch%2Fqueue.html;h=125a6f7f619147e08f837f1d76f0ef0c41d16c98;hb=1b7db3fe3d9049141a13721d658747fe2a006859;hp=132c0512911bc4259aa6774fe25aa1346aa41efb;hpb=1e0dbd55775c7d9eba7db3d17a6173d03e3c2d0a;p=freeside.git diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index 132c05129..125a6f7f6 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,20 +1,7 @@ -<% - -my $hashref = {}; - -my $conf = new FS::Conf; -my $dangerous = $conf->exists('queue_dangerous_controls'); - -my $noactions = 0; - -my $count_query = 'SELECT COUNT(*) FROM queue'; # + $hashref - -my $areboxes = 0; - -%><%= include( 'elements/search.html', +<% include( 'elements/search.html', 'title' => 'Job Queue', - 'menubar' => [ 'Main menu' => $p, ], 'name' => 'jobs', + 'html_form' => qq!
!, 'query' => { 'table' => 'queue', 'hashref' => $hashref, 'extra_sql' => 'ORDER BY jobnum', @@ -113,8 +100,18 @@ my $areboxes = 0; # ], 'html_foot' => sub { if ( $areboxes ) { + '
'. + ''. '
'. - '
'; + '
'. + ''; } else { ''; } @@ -122,3 +119,20 @@ my $areboxes = 0; ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Job queue'); + +my $hashref = {}; + +my $conf = new FS::Conf; +my $dangerous = $conf->exists('queue_dangerous_controls'); + +my $noactions = 0; + +my $count_query = 'SELECT COUNT(*) FROM queue'; # + $hashref + +my $areboxes = 0; + +