X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Finventory_item-import.html;h=37898739ad8d46a34f7777eb8193a1a2623650bc;hb=f93d758f59bf0e7be4293a57ed6e8c6ba2c7a7fe;hp=990c14ffc5e4bc291127c255ecfedba3fd197716;hpb=f1cd7f98b487e74aa60b6c41d3377cc60f7ac25a;p=freeside.git diff --git a/httemplate/misc/inventory_item-import.html b/httemplate/misc/inventory_item-import.html index 990c14ffc..37898739a 100644 --- a/httemplate/misc/inventory_item-import.html +++ b/httemplate/misc/inventory_item-import.html @@ -3,18 +3,18 @@ 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", - ) -%> +<& /elements/form-file_upload.html, + 'name' => 'InventoryImportForm', + '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", + 'onsubmit' => "document.InventoryImportForm.submitButton.disabled=true;", +&> <% &ntable("#cccccc", 2) %> @@ -24,7 +24,10 @@ Import a file containing <% PL($inventory_class->classname) %>, one per line. %# - <% include('/elements/tr-select-agent.html') %> + <% include('/elements/tr-select-agent.html', + 'viewall_right' => 'None', + ) + %> <% include( '/elements/file-upload.html', 'field' => 'file', @@ -34,10 +37,10 @@ Import a file containing <% PL($inventory_class->classname) %>, one per line. -