X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ferror.html;h=5083799fae85fa94754925172c7cc6bff1d8475b;hp=f467de2a356ed9a3dab2cd969c27fd8356874b18;hb=7b0bbc4117a7959b9f7b7b2cf999b8188ba34160;hpb=624b2d44625f69d71175c3348cae635d580c890b diff --git a/httemplate/elements/error.html b/httemplate/elements/error.html index f467de2a3..5083799fa 100644 --- a/httemplate/elements/error.html +++ b/httemplate/elements/error.html @@ -1,4 +1,28 @@ % if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') |h %> -

-% } +% $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