CDR Report: add top sources, top destinations, and longest calls report options,...
[freeside.git] / httemplate / misc / part_device-import.html
1 <% include("/elements/header.html", 'Import device types') %>
2
3 Import a file containing phone device types, one per line.
4 <BR><BR>
5
6 <& /elements/form-file_upload.html,
7      'name'      => 'PartDeviceImportForm',
8      'action'    => 'process/part_device-import.html',
9      'num_files' => 1,
10      'fields'    => [ 'format', ], 
11      'message'   => 'Device type import successful',
12      'url'       => $p.'browse/part_device.html',
13      'onsubmit'  => "document.PartDeviceImportForm.submitButton.disabled=true;",
14 &>
15
16 <% &ntable("#cccccc", 2) %>
17
18   <INPUT TYPE="hidden" NAME="format" VALUE="default">
19
20   <% include( '/elements/file-upload.html',
21                 'field' => 'file',
22                 'label' => 'Filename',
23             )
24   %>
25
26   <TR>
27     <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">
28       <INPUT TYPE    = "submit"
29              ID      = "submitButton"
30              NAME    = "submitButton"
31              VALUE   = "Import file"
32       >
33     </TD>
34   </TR>
35
36 </TABLE>
37
38 </FORM>
39
40 <BR>
41
42 Upload file can be a text file or Excel spreadsheet.  If an Excel spreadsheet,
43  should have an .XLS extension.
44 <BR><BR>
45
46 <% include('/elements/footer.html') %>
47
48 <%init>
49
50 die "access denied"
51   unless $FS::CurrentUser::CurrentUser->access_right('Import');
52
53 </%init>