patch fixing "retry selected" and "remove select" in queue view
authorivan <ivan>
Fri, 22 Dec 2006 06:18:21 +0000 (06:18 +0000)
committerivan <ivan>
Fri, 22 Dec 2006 06:18:21 +0000 (06:18 +0000)
httemplate/search/elements/search.html
httemplate/search/queue.html

index c6d0bb6..7d5e58a 100644 (file)
 %  # # 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)
                            'maxrecords' => $maxrecords,
             ) %>
 
+            <% defined($opt{'html_form'}) 
+                 ? ( ref($opt{'html_form'})
+                       ? &{$opt{'html_form'}}()
+                       : $opt{'html_form'}
+                   )
+                 : ''
+            %>
+
             <% include('/elements/table-grid.html') %>
 
               <TR>
index fa6c1a1..63a5d6c 100644 (file)
@@ -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',