<% include("/elements/header.html", 'Import device types') %> Import a file containing phone device types, one per line.

<& /elements/form-file_upload.html, 'name' => 'PartDeviceImportForm', 'action' => 'process/part_device-import.html', 'num_files' => 1, 'fields' => [ 'format', ], 'message' => 'Device type import successful', 'url' => $p.'browse/part_device.html', 'onsubmit' => "document.PartDeviceImportForm.submitButton.disabled=true;", &> <% &ntable("#cccccc", 2) %> <% include( '/elements/file-upload.html', 'field' => 'file', 'label' => 'Filename', ) %>
Upload file can be a text file or Excel spreadsheet. If an Excel spreadsheet, should have an .XLS extension.

<% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Import');