X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Finventory_item.html;h=d8277341519b10ede05f628c7b8ef3deb0e89b7f;hp=64722ff4125a291220ec4937252a6a6926cb2b8a;hb=949a80c148a8bbeeeec54c5a0be5d73b292423a5;hpb=fed12e8214a8a951377961ccbe7a09171b1e38c2 diff --git a/httemplate/search/inventory_item.html b/httemplate/search/inventory_item.html index 64722ff41..d82773415 100644 --- a/httemplate/search/inventory_item.html +++ b/httemplate/search/inventory_item.html @@ -1,4 +1,4 @@ -<% include( 'elements/search.html', +<& elements/search.html, 'title' => $title, 'menubar' => [ 'View inventory classes' => @@ -81,14 +81,10 @@ '', FS::UI::Web::cust_styles(), ], - 'html_form' => - qq! -
- -', #' - 'html_foot' => $sub_foot, - ) -%> + 'html_init' => $html_form, + 'html_foot' => $html_foot, + +&> <%init> my $curuser = $FS::CurrentUser::CurrentUser; @@ -158,41 +154,39 @@ my $addl_from = ' LEFT JOIN cust_svc USING ( svcnum ) '. ' LEFT JOIN part_svc USING ( svcpart ) '. ' LEFT JOIN cust_pkg USING ( pkgnum ) '. FS::UI::Web::join_cust_main('cust_pkg', 'cust_pkg'); -my $areboxes = 0; my $sub_checkbox = sub { my $item = $_[0]; my $itemnum = $item->itemnum; - #return '' if $item->svcnum; - $areboxes = 1; - return qq!!; -}; + return '' if $item->svcnum; -my $sub_foot = sub { - return if !$areboxes; - my $foot = -'
- -
- -'; - $foot; + return qq!!; }; - - +my $html_form = qq! + + +'; +#' + +my $html_foot = include('elements/checkbox-foot.html', + actions => [ + { submit => 'Delete', + confirm => 'Delete the selected items?', + name => 'delete', + }, + { submit => 'Move to', + name => 'move', + }, + ], +); + +$html_foot =~ s[][]; +$html_foot .= + include('/elements/select-agent.html', + 'field' => 'move_agentnum', + 'disable_empty' => 1, + ) . + '
';