X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Fqueue.html;h=1c124706c2e60d91cc1c967968614cf28ae3e0a2;hp=fa6c1a1cac1eb8842ae21ac2889dde8ef1ced27c;hb=c3da5cf1caa244937d280e0f406927103beef148;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index fa6c1a1ca..1c124706c 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -1,24 +1,10 @@ -% -% -%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!
!, 'query' => { 'table' => 'queue', 'hashref' => $hashref, - 'extra_sql' => 'ORDER BY jobnum', + 'order_by' => 'ORDER BY jobnum', }, 'count_query' => $count_query, 'header' => [ '#', @@ -64,10 +50,14 @@ || ( ! $noactions && $status =~ /^failed/ || $status =~ /^locked/ + || $status =~ /^done/ ); if ( $changable ) { + $status .= qq! (!; + $status .= + qq!  retry |! + unless $status =~ /^done/; $status .= - qq! ( retry |!. qq! remove )!; } $status; @@ -114,8 +104,18 @@ # ], 'html_foot' => sub { if ( $areboxes ) { + '
'. + ''. '
'. - '
'; + '
'. + ''; } else { ''; } @@ -123,3 +123,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; + +