summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/search/elements/search.html12
-rw-r--r--httemplate/search/queue.html1
2 files changed, 13 insertions, 0 deletions
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') %>
<TR>
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!<FORM ACTION="$p/misc/queue.cgi" METHOD="POST">!,
'query' => { 'table' => 'queue',
'hashref' => $hashref,
'extra_sql' => 'ORDER BY jobnum',