From f27a5a08ba712678bf826a47f82f96568208bab3 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 22 Dec 2006 06:18:21 +0000 Subject: [PATCH] patch fixing "retry selected" and "remove select" in queue view --- httemplate/search/elements/search.html | 12 ++++++++++++ httemplate/search/queue.html | 1 + 2 files changed, 13 insertions(+) diff --git a/httemplate/search/elements/search.html b/httemplate/search/elements/search.html index c6d0bb68b..7d5e58a3b 100644 --- a/httemplate/search/elements/search.html +++ b/httemplate/search/elements/search.html @@ -13,6 +13,10 @@ % # # some HTML callbacks... % # 'menubar' => '', #menubar arrayref % # 'html_init' => '', #after the header/menubar and before the pager +% # 'html_form' => '', #after the pager, right before the results +% # # (only shown if there are results) +% # # (use this for any form-opening tag rather than +% # # html_init, to avoid a nested form) % # 'html_foot' => '', #at the bottom % # 'html_posttotal' => '', #at the bottom % # # (these three can be strings or coderefs) @@ -473,6 +477,14 @@ 'maxrecords' => $maxrecords, ) %> + <% defined($opt{'html_form'}) + ? ( ref($opt{'html_form'}) + ? &{$opt{'html_form'}}() + : $opt{'html_form'} + ) + : '' + %> + <% include('/elements/table-grid.html') %> diff --git a/httemplate/search/queue.html b/httemplate/search/queue.html index fa6c1a1ca..63a5d6c96 100644 --- a/httemplate/search/queue.html +++ b/httemplate/search/queue.html @@ -16,6 +16,7 @@ 'title' => 'Job Queue', 'menubar' => [ 'Main menu' => $p, ], 'name' => 'jobs', + 'html_form' => qq!
!, 'query' => { 'table' => 'queue', 'hashref' => $hashref, 'extra_sql' => 'ORDER BY jobnum', -- 2.11.0