From 791b34f7cb476e7c645d8eb7019dde9fdf5cf663 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 5 May 2009 10:40:15 +0000 Subject: finish the import portion of excel rate edit, RT#5108 --- httemplate/misc/process/rate_edit_excel.html | 10 ++++++++++ httemplate/misc/rate_edit_excel.html | 14 ++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 httemplate/misc/process/rate_edit_excel.html (limited to 'httemplate/misc') diff --git a/httemplate/misc/process/rate_edit_excel.html b/httemplate/misc/process/rate_edit_excel.html new file mode 100644 index 000000000..acd5f4995 --- /dev/null +++ b/httemplate/misc/process/rate_edit_excel.html @@ -0,0 +1,10 @@ +<% $server->process %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +my $server = new FS::UI::Web::JSRPC 'FS::rate_detail::process_edit_import', $cgi; + + + diff --git a/httemplate/misc/rate_edit_excel.html b/httemplate/misc/rate_edit_excel.html index 7d3255301..e73133c05 100644 --- a/httemplate/misc/rate_edit_excel.html +++ b/httemplate/misc/rate_edit_excel.html @@ -4,7 +4,7 @@ 'name' => 'RateImportForm', 'action' => 'process/rate_edit_excel.html', 'num_files' => 1, - 'fields' => [ 'format' ], #? + 'fields' => [ 'format' ], 'message' => 'Rate edit successful', 'url' => $p."browse/rate_region.html", ) @@ -23,12 +23,22 @@ 2. Edit rates with Excel (or other .XLS-compatible application) + + +     - To add rates, add four columns like an existing rate, with headers starting with "NEW: Rate Name" or "Rate Name".
+     - For rate addition, protection can be turned off in Excel via the Tools->Protection->Unprotect Sheet menu command. Note that only new rates can be added; modified grayed out cells will not be imported. + + + <% include( '/elements/file-upload.html', 'field' => 'file', - 'label' => '3. Upload edited rate file: '. ( ' 'x4 ), #yuck + 'label' => '3. Upload edited rate file: ', + 'label_align' => 'left', ) %> + +