From 710841aeba1632f57ab34d4e2abce3d65b531f69 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Sun, 28 Apr 2019 19:14:49 -0400 Subject: RT# 83204 - added link to service or tower causing error. Conflicts: httemplate/misc/progress-popup.html --- httemplate/elements/error.html | 27 +++++++++++++++++++++++++-- httemplate/elements/progress-init.html | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) (limited to 'httemplate/elements') 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')); <% mt("Error: [_1]", $cgi->param('error')) |h %> -

-% } +
+% } + +% if ( $cgi->param('error_link') ) { +% $m->notes('error', $error_link); + <% $error_link %> +
+% } +
+ +<%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/!--(.*)\,(.*)\,(.*)--!/$3<\/b><\/font><\/a>/g; +} + + \ No newline at end of file diff --git a/httemplate/elements/progress-init.html b/httemplate/elements/progress-init.html index 0c2b8165a..24ad55939 100644 --- a/httemplate/elements/progress-init.html +++ b/httemplate/elements/progress-init.html @@ -155,7 +155,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 ); -- cgit v1.2.1