From 5da73ac30a52234cc126ead03cddaf5a4e131019 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 14 Aug 2008 11:56:07 +0000 Subject: customer import: add progress bar & redirect to a search of the imported customers, #3475 --- httemplate/elements/file-upload.html | 54 ++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 30 deletions(-) (limited to 'httemplate/elements/file-upload.html') diff --git a/httemplate/elements/file-upload.html b/httemplate/elements/file-upload.html index 2859a676f..023bffb1e 100644 --- a/httemplate/elements/file-upload.html +++ b/httemplate/elements/file-upload.html @@ -1,10 +1,13 @@ - - + + + + + - - % foreach (@field) { - - <% shift @label %> - - + + <% shift @label %> + + % } -
Debugging:
- -<%init> -my %param = @_; -my $debug = $param{'debug'}; +
+ Debugging:

+
-my $callback = $param{'callback'} || "''"; +<%init> -my @label = (); -if ( ref($param{'label'}) ) { - push @label, @{$param{'label'}}; -}else{ - push @label, $param{'label'}; -} +my %param = @_; -my @field = (); -if ( ref($param{'field'}) ) { - push @field, @{$param{'field'}}; -}else{ - push @field, $param{'field'}; -} +my @label = ref($param{'label'}) ? @{$param{'label'}} : ($param{'label'}); +my @field = ref($param{'field'}) ? @{$param{'field'}} : ($param{'field'}); -- cgit v1.2.1