X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fqueue.html;h=c343014ccd67a720388811236bfa930ac48cd679;hb=00aed756e1449f4d0847b1d05f96208d607b4711;hp=63a5d6c96f002641e896a3e1ad6108987ae0a597;hpb=f27a5a08ba712678bf826a47f82f96568208bab3;p=freeside.git diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index 63a5d6c96..c343014cc 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,22 +1,8 @@ -% -% -%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', 'title' => 'Job Queue', 'menubar' => [ 'Main menu' => $p, ], 'name' => 'jobs', - 'html_form' => qq!
!, + 'html_form' => qq!!, 'query' => { 'table' => 'queue', 'hashref' => $hashref, 'extra_sql' => 'ORDER BY jobnum', @@ -115,8 +101,18 @@ # ], 'html_foot' => sub { if ( $areboxes ) { + '
'. + ''. '
'. - '
'; + '
'. + ''; } else { ''; } @@ -124,3 +120,20 @@ ) %> +<%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; + +