diff options
Diffstat (limited to 'httemplate')
| -rw-r--r-- | httemplate/elements/file-upload.html | 2 | ||||
| -rw-r--r-- | httemplate/misc/process/rate_edit_excel.html | 10 | ||||
| -rw-r--r-- | httemplate/misc/rate_edit_excel.html | 14 | 
3 files changed, 23 insertions, 3 deletions
diff --git a/httemplate/elements/file-upload.html b/httemplate/elements/file-upload.html index c8b026d04..7e2eeefcd 100644 --- a/httemplate/elements/file-upload.html +++ b/httemplate/elements/file-upload.html @@ -55,7 +55,7 @@  % foreach (@field) {      <TR> -      <TH ALIGN="right"><% shift @label %></TH> +      <TH ALIGN="<% $param{'label_align'} || 'right' %>"><% shift @label %></TH>        <TD><INPUT TYPE="file" NAME="<% $_ %>" /></TD>      </TR>  % } 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; + +</%init> + 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 @@      <TH ALIGN="left" COLSPAN=2>2. Edit rates with Excel (or other .XLS-compatible application)</TH>    </TR> +  <TR> +    <TD ALIGN="left" COLSPAN=2> +          - To add rates, add four columns like an existing rate, with headers starting with "NEW: Rate Name" or "Rate Name".<BR> +         - <FONT SIZE="-2"><I>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.</I></FONT> +    </TD> +  </TR> +    <% include( '/elements/file-upload.html',                  'field' => 'file', -                'label' => '3. Upload edited rate file: '. ( ' 'x4 ), #yuck +                'label' => '3. Upload edited rate file: ', +                'label_align' => 'left',              )    %> +  <INPUT TYPE="hidden" NAME="format" VALUE="default"> +    <TR>      <TD COLSPAN=2 ALIGN="center" STYLE="padding-top:6px">        <INPUT TYPE    = "submit"  | 
