X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fphone_avail-import.html;h=b6fea7ec2728f537db14a0860383ca7c3d8bcd87;hp=635b8f69ce55b45d6ca798b0b37f44c6ec0f7c8a;hb=dad39ad50ddc5cbb549a0207262d94a4886d5fec;hpb=9d354e2a0b212a3459d93f3698f26e200577f289 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). <% $format %> +% if ( scalar(@exports) == 1 ) { +% my $export = $exports[0]; + + Export + + + <% $export->exportname %> + + +% } 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' => ) %> +% } Country code @@ -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', });