patch fixing "retry selected" and "remove select" in queue view
[freeside.git] / httemplate / search / elements / search.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>