X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fprocess%2Fcdr-import.html;h=edc441e35032c953de093c0ff04df213468ee5dd;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hp=7c4bf2b59d5f3eb42adfe402e373aaf109bbb1c8;hpb=9d74cea56767d887c7b0a26ec337feb1ff05b96a;p=freeside.git diff --git a/httemplate/misc/process/cdr-import.html b/httemplate/misc/process/cdr-import.html index 7c4bf2b59..edc441e35 100644 --- a/httemplate/misc/process/cdr-import.html +++ b/httemplate/misc/process/cdr-import.html @@ -1,23 +1,9 @@ -% if ( $error ) { -% errorpage($error); -% } else { - <% include("/elements/header.html",'Import successful') %> - - <% include("/elements/footer.html",'Import successful') %> -% } +<% $server->process %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Import'); -my $fh = $cgi->upload('csvfile'); - -my $error = defined($fh) - ? FS::cdr::batch_import( { - 'filehandle' => $fh, - 'format' => scalar($cgi->param('format')), - 'cdrbatch' => scalar($cgi->param('cdrbatch')), - } ) - : 'No file'; +my $server = new FS::UI::Web::JSRPC 'FS::cdr::process_batch_import', $cgi;