X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fsearch%2Finventory_item.html;h=086c8e92d40c525a5ce7a4149621e50eaea037ba;hb=8dba5cb96454bf8ec81333ebac381180731396f1;hp=cd37e267bfc9ae8d902ee1661d6021993b0196b4;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/httemplate/search/inventory_item.html b/httemplate/search/inventory_item.html index cd37e267b..086c8e92d 100644 --- a/httemplate/search/inventory_item.html +++ b/httemplate/search/inventory_item.html @@ -1,14 +1,21 @@ <% include( 'elements/search.html', 'title' => $title, - #less lame to use Lingua:: something to pluralize - 'name' => $inventory_class->classname. 's', + 'menubar' => [ 'View inventory classes' => + $p.'browse/inventory_class.html', + 'Upload '. PL($inventory_class->classname)=> + $p.'misc/inventory_item-import.html?'. + "classnum=$classnum" + ], + + 'name' => PL($inventory_class->classname), 'query' => { 'table' => 'inventory_item', - 'hashref' => { 'classnum' => $classnum }, + 'hashref' => {}, 'select' => join(', ', 'inventory_item.*', + 'part_svc.svcdb', 'cust_main.custnum', FS::UI::Web::cust_sql_fields(), ), @@ -18,11 +25,16 @@ 'count_query' => $count_query, + 'agent_virt' => 1, + 'agent_null' => 1, + 'agent_pos' => 2, + 'header' => [ '#', $inventory_class->classname, 'Service', FS::UI::Web::cust_header(), + '', # checkbox column ], 'fields' => [ @@ -45,6 +57,7 @@ }, \&FS::UI::Web::cust_fields, + $sub_checkbox, ], 'align' => 'rll'.FS::UI::Web::cust_aligns(), @@ -68,17 +81,27 @@ '', FS::UI::Web::cust_styles(), ], - + 'html_form' => + qq! +