diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2019-04-28 19:14:49 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2019-04-30 13:23:31 -0400 |
| commit | 710841aeba1632f57ab34d4e2abce3d65b531f69 (patch) | |
| tree | e78b9373b9d34bdc6f3cb0a1f8bfa14fe9abdb12 /httemplate/elements/error.html | |
| parent | 69a13395159bf8df783d74cbcb5f9444e1a946d5 (diff) | |
RT# 83204 - added link to service or tower causing error.
Conflicts:
httemplate/misc/progress-popup.html
Diffstat (limited to 'httemplate/elements/error.html')
| -rw-r--r-- | httemplate/elements/error.html | 27 |
1 files changed, 25 insertions, 2 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 |
