From: Thomas Berezansky Date: Sat, 24 Sep 2011 23:03:27 +0000 (-0400) Subject: TPac: Fix bolding of bad email/username X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d299e9c6dbc978be4e3a565e859f7b43c4df9b5e;p=evergreen%2Fpines.git TPac: Fix bolding of bad email/username HTML filter the variable, not the entire language string. Signed-off-by: Thomas Berezansky Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/templates/opac/myopac/update_email.tt2 b/Open-ILS/src/templates/opac/myopac/update_email.tt2 index 827995976b..b920e085a7 100644 --- a/Open-ILS/src/templates/opac/myopac/update_email.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_email.tt2 @@ -6,7 +6,8 @@ [% IF ctx.invalid_email %]
- [% l('The email address "[_1]" is invalid. Please try a different email address.', ctx.invalid_email) | html %] + [% bad_email = ctx.invalid_email | html %] + [% l('The email address "[_1]" is invalid. Please try a different email address.', bad_email) %]
[% END %] diff --git a/Open-ILS/src/templates/opac/myopac/update_username.tt2 b/Open-ILS/src/templates/opac/myopac/update_username.tt2 index 8ff329e660..6f48320104 100644 --- a/Open-ILS/src/templates/opac/myopac/update_username.tt2 +++ b/Open-ILS/src/templates/opac/myopac/update_username.tt2 @@ -6,7 +6,8 @@ [% IF ctx.invalid_username %]
- [% l('"[_1]" is not a valid username. Usernames cannot have any spaces. Please try a different username.', ctx.invalid_username) | html %] + [% bad_user = ctx.invalid_username | html %] + [% l('"[_1]" is not a valid username. Usernames cannot have any spaces. Please try a different username.', bad_user) %]
[% ELSIF ctx.username_exists %]