X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Finventory_item.html;h=0e4251f747418679acd0334636b8248b884af026;hb=e55892bdf6dc95710a19876087690a9664421215;hp=55fef94329a4c3fa8938af9d48976913d163e291;hpb=4cbd1300a45200f614fa0bcdee40abbfd5e28ff8;p=freeside.git diff --git a/httemplate/search/inventory_item.html b/httemplate/search/inventory_item.html index 55fef9432..0e4251f74 100644 --- a/httemplate/search/inventory_item.html +++ b/httemplate/search/inventory_item.html @@ -1,8 +1,14 @@ -<% include( 'elements/search.html', +<& 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', @@ -19,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' => [ @@ -46,6 +57,7 @@ }, \&FS::UI::Web::cust_fields, + $sub_checkbox, ], 'align' => 'rll'.FS::UI::Web::cust_aligns(), @@ -69,13 +81,22 @@ '', FS::UI::Web::cust_styles(), ], - - ) -%> + 'html_form' => + qq! +