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 <stevecallender@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
[% IF !ctx.user.email %]disabled="true"[% ELSIF ctx.default_email_notify %]checked="checked"[% END %]/>
<label for="email_notify">[% l('Yes, by Email') %]</label><br/>
<blockquote>
- [% l('Email Address:') %] <span name="email_address">[% ctx.user.email %]</span>
+ [% IF !ctx.user.email; l('No configured Email address. See "My Account" for setting your Email address.');
+ ELSE; l('Email Address:') %] <span name="email_address">[% ctx.user.email %]</span>[% END %]
</blockquote>
[%- IF allow_phone_notifications == 'true' %]
<input type="checkbox" id="phone_notify_checkbox" name="phone_notify_checkbox"