% include("/elements/header.html", PL($inventory_class->classname)) %>
Import a file containing <% PL($inventory_class->classname) %>, one per line.
<% include( '/elements/form-file_upload.html',
'name' => 'InventoryItemImportForm',
'action' => 'process/inventory_item-import.html',
'num_files' => 1,
#'fields' => [ 'format', 'itembatch', 'classnum', 'agentnum' ],
'fields' => [ 'format', 'classnum', 'agentnum', ],
'message' => 'Inventory import successful',
#XXX redirect via $itembatch? or just back to class browse?
#'url' => $p."search/phone_avail.html?availbatch=$availbatch",
'url' => $p."search/inventory_item.html?classnum=$classnum;avail=1",
)
%>
<% &ntable("#cccccc", 2) %>
%#
<% include('/elements/tr-select-agent.html',
'viewall_right' => 'None',
)
%>
<% include( '/elements/file-upload.html',
'field' => 'file',
'label' => 'Filename',
)
%>