From 5ff9c3d0c052f84fb896838db512085657493a91 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 25 May 2010 12:41:22 +0000 Subject: [PATCH] unfinished rate import --- httemplate/misc/process/rate-import.html | 9 ++++ httemplate/misc/rate-import.html | 76 ++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 httemplate/misc/process/rate-import.html create mode 100644 httemplate/misc/rate-import.html diff --git a/httemplate/misc/process/rate-import.html b/httemplate/misc/process/rate-import.html new file mode 100644 index 000000000..2c641642c --- /dev/null +++ b/httemplate/misc/process/rate-import.html @@ -0,0 +1,9 @@ +<% $server->process %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + +my $server = new FS::UI::Web::JSRPC 'FS::rate::process_batch_import', $cgi; + + diff --git a/httemplate/misc/rate-import.html b/httemplate/misc/rate-import.html new file mode 100644 index 000000000..ae8ee695b --- /dev/null +++ b/httemplate/misc/rate-import.html @@ -0,0 +1,76 @@ +<% include("/elements/header.html",'Import Rate Plan') %> + +<% include( '/elements/form-file_upload.html', + 'name' => 'RateImportForm', + 'action ' => 'process/rate-import.html', + 'num_files' => 1, + 'fields' => [ 'ratename' ], + 'message' => 'Rate plan import successful', +# 'url' => $p."browse/rate_detail.cgi?ratenum=$ratenum", #XXX how? + ) +%> + +<% &ntable("#cccccc", 2) %> + + + Rate plan + + + + + + <% include( '/elements/file-upload.html', + 'field' => 'file', + 'label' => 'Filename', + ) + %> + + + + + + + + + + + +
+ + +File format is CSV (comma-separated value), with the following field order: + + +Formatting rules for second field: + + +Have caution when importing prefix data that is mismatched to your current +prefixes. + +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Import'); + + -- 2.11.0