From 6707d536768f6cb72da4d974d6f742abf0a4681d Mon Sep 17 00:00:00 2001 From: Steven Callender Date: Thu, 12 Sep 2013 13:30:16 -0400 Subject: [PATCH] Added in warning message when placing hold with no email address. Previously when an account didn't have an email address associated with it when placing a hold, the input box would be greyed out and the display would show the Email Address text with no address to go with it. This change will instead show text warning the user that they have no email address configured and they need to go to My Account in order to add one to their account. Signed-off-by: Steven Callender Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/place_hold.tt2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/place_hold.tt2 b/Open-ILS/src/templates/opac/parts/place_hold.tt2 index 9b410fba2b..cb6abfffd5 100644 --- a/Open-ILS/src/templates/opac/parts/place_hold.tt2 +++ b/Open-ILS/src/templates/opac/parts/place_hold.tt2 @@ -83,7 +83,8 @@ [% IF !ctx.user.email %]disabled="true"[% ELSIF ctx.default_email_notify %]checked="checked"[% END %]/>
- [% l('Email Address:') %] [% ctx.user.email %] + [% IF !ctx.user.email; l('No configured Email address. See "My Account" for setting your Email address.'); + ELSE; l('Email Address:') %] [% ctx.user.email %][% END %]
[%- IF allow_phone_notifications == 'true' %]