diff options
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/error.html | 27 | ||||
-rw-r--r-- | httemplate/elements/progress-init.html | 2 |
2 files changed, 26 insertions, 3 deletions
diff --git a/httemplate/elements/error.html b/httemplate/elements/error.html index f9664bd65..5083799fa 100644 --- a/httemplate/elements/error.html +++ b/httemplate/elements/error.html @@ -1,5 +1,28 @@ % if ( $cgi->param('error') ) { % $m->notes('error', $cgi->param('error')); <FONT SIZE="+1" COLOR="#ff0000"><% mt("Error: [_1]", $cgi->param('error')) |h %></FONT> - <BR><BR> -% } + <BR> +% } + +% if ( $cgi->param('error_link') ) { +% $m->notes('error', $error_link); + <FONT SIZE="+1" COLOR="#ff0000"><% $error_link %></FONT> + <BR> +% } +<BR> + +<%init> + +my %type_error_links = ( + 'service' => rooturl()."/view/svc_broadband.cgi?", + 'tower' => rooturl()."/edit/tower.html?", +); + +my $error_link; + +if ( $cgi->param('error_link') ) { + $error_link = encode_entities(decode_base64($cgi->param('error_link'))); + $error_link =~ s/!--(.*)\,(.*)\,(.*)--!/<a href=$type_error_links{$1}$2><font color=red><b>$3<\/b><\/font><\/a>/g; +} + +</%init>
\ No newline at end of file diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index 789825cc5..2a62c5e99 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -154,7 +154,7 @@ my %dest_info; if ( ref($url_or_message) ) { #its a message or something %dest_info = map { $_ => $url_or_message->{$_} } grep { $url_or_message->{$_} } - qw( message url popup_url error_url ); + qw( message url popup_url error_url reload_with_error ); } else { # it can also just be a url %dest_info = ( 'url' => $url_or_message ); |