diff options
| author | levinse <levinse> | 2011-04-22 23:17:40 +0000 |
|---|---|---|
| committer | levinse <levinse> | 2011-04-22 23:17:40 +0000 |
| commit | c100b2bd8c2be06879ca5b8e5217efd80b8dce63 (patch) | |
| tree | 96683317d0539d826a44a2311d6ad21194793da7 /httemplate/misc | |
| parent | a149a3e06de92d5be5baf0029414f01d7b35ab71 (diff) | |
bulk DID orders/inventory improvements, RT11291
Diffstat (limited to 'httemplate/misc')
| -rw-r--r-- | httemplate/misc/phone_avail-import.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/httemplate/misc/phone_avail-import.html b/httemplate/misc/phone_avail-import.html index 635b8f69c..b6fea7ec2 100644 --- a/httemplate/misc/phone_avail-import.html +++ b/httemplate/misc/phone_avail-import.html @@ -45,6 +45,16 @@ Import a file containing phone numbers (DIDs). <TD><% $format %><INPUT TYPE="hidden" NAME="format" VALUE="<% $format %>"></TD> </TR> +% if ( scalar(@exports) == 1 ) { +% my $export = $exports[0]; + <TR> + <TD>Export</TD> + <TD> + <INPUT TYPE="hidden" name="exportnum" value="<%$export->exportnum%>"> + <% $export->exportname %> + </TD> + </TR> +% } else { <% include( '/elements/tr-select-table.html', 'table' => 'part_export', 'name_col' => 'label', @@ -55,6 +65,7 @@ Import a file containing phone numbers (DIDs). #'label_callback' => ) %> +% } <TR> <TH ALIGN="right">Country code</TH> @@ -145,5 +156,7 @@ if ( $order ) { my $availbatch = time2str('webimport-%Y/%m/%d-%T'. "-$$-". rand() * 2**32, time); + +my @exports = qsearch('part_export', { 'exporttype' => 'internal_diddb', }); </%init> |
