Lines 34-39
Link Here
|
34 |
[% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %] |
34 |
[% IF Koha.Preference( 'EnhancedMessagingPreferencesOPAC' ) %] |
35 |
<div id="usermessaging" class="maincontent"> |
35 |
<div id="usermessaging" class="maincontent"> |
36 |
<h3>Your messaging settings</h3> |
36 |
<h3>Your messaging settings</h3> |
|
|
37 |
[% IF message_preference_exception %] |
38 |
<div class="alert alert-danger"> |
39 |
<h4>Error</h4> |
40 |
[% IF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Transport::TypeNotFound' %] |
41 |
<p>Message transport type <strong>[% message_preference_exception.transport_type %]</strong> does not exist.</p> |
42 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::AttributeNotFound' %] |
43 |
<p>Message attribute not found.</p> |
44 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::DaysInAdvanceOutOfRange' %] |
45 |
<p><strong>Days in advance</strong> selection is out of range. The value must be between [% message_preference_exception.min %] and [% message_preference_exception.max %].</p> |
46 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::DaysInAdvanceNotAvailable' %] |
47 |
<p><strong>Days in advance</strong> cannot be selected for <strong>[% message_preference_exception.message_name %]</strong>.</p> |
48 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::DigestNotAvailable' %] |
49 |
<p><strong>Digest</strong> cannot be selected for <strong>[% message_preference_exception.message_name %]</strong>.</p> |
50 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::DigestRequired' %] |
51 |
<p><strong>Digest</strong> must be selected for <strong>[% message_preference_exception.message_name %]</strong>.</p> |
52 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::EmailAddressRequired' %] |
53 |
<p>You cannot select email notifications because you haven't set an email address.</p> |
54 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::NoTransportType' %] |
55 |
<p>Message transport type <strong>[% message_preference_exception.transport_type %]</strong> is not available for [% message_preference_exception.message_name %].</p> |
56 |
[% ELSIF message_preference_exception_ref == 'Koha::Exceptions::Patron::Message::Preference::SMSNumberRequired' %] |
57 |
<p>You cannot select SMS notifications because you haven't set an SMS number address.</p> |
58 |
[% END %] |
59 |
</div> |
60 |
[% END %] |
37 |
[% IF !logged_in_user.email %] |
61 |
[% IF !logged_in_user.email %] |
38 |
<div class="alert alert-warning"> |
62 |
<div class="alert alert-warning"> |
39 |
<h4>Your user account is missing email address</h4> |
63 |
<h4>Your user account is missing email address</h4> |