1 [% PROCESS "opac/parts/header.tt2";
2 WRAPPER "opac/parts/myopac/prefs_base.tt2";
4 prefs_page = 'notify' %]
7 [% setting = 'opac.hold_notify' %]
8 <input name='[% setting %]' type="hidden"
9 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
11 <table class="full-width data_grid" id="acct_search_main">
14 [% IF ctx.updated_user_settings %]
16 <div class='renew-summary'>
17 [% l('Account Successfully Updated') %]
22 [% setting = 'opac.hold_notify' %]
24 <td><label for='[% setting %].email'>[%
25 l('Notify by Email by default when a hold is ready for pickup?')
28 <input id='[% setting %].email' name='[% setting %].email' type="checkbox"
29 [% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/>
32 [%- IF allow_phone_notifications == 'true';
33 setting = 'opac.hold_notify';
36 <td><label for='[% setting %].phone'>[%
37 l('Notify by Phone by default when a hold is ready for pickup?')
40 <input id='[% setting %].phone' name='[% setting %].phone' type="checkbox"
41 [% IF (matches = ctx.user_setting_map.$setting.match('phone')); %] checked='checked' [% END %]/>
44 [% setting = 'opac.default_phone' %]
46 <td><label for='[% setting %]'>[% l('Default Phone Number') %]</label></td>
48 <input id='[% setting %]' name='[% setting %]' type="text"
49 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
53 [%- IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1;
54 setting = 'opac.hold_notify';
57 <td><label for='[% setting %].sms'>[%
58 l('Notify by Text by default when a hold is ready for pickup?')
61 <input id='[% setting %].sms' name='[% setting %].sms' type="checkbox"
62 [% IF (matches = ctx.user_setting_map.$setting.match('sms')); %] checked='checked' [% END %]/>
66 <td>[% l('Default Mobile Carrier') %]</td>
67 <td>[% INCLUDE "opac/parts/sms_carrier_selector.tt2" sms_carrier_hide_label="true" %]</td>
69 [% setting = 'opac.default_sms_notify' %]
71 <td><label for='[% setting %]'>[% l('Default Mobile Number') %]</label></td>
73 <input id='[% setting %]' name='[% setting %]' type="text"
74 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
75 [% l('Hint: use the full 10 digits of your phone #, no spaces, no dashes'); %]
84 <th>[% l('Notification Type') %]</th>
85 <th>[% l('Enabled') %]</th>
87 <tbody class='data_grid'>
88 [% IF optin.size == 0 %]
89 <strong>[% l('No notification preferences are configured') %]</strong>
91 [% FOR optin IN ctx.opt_in_settings %]
93 <td>[% optin.cust.label | html %]</td>
95 <input type='checkbox' name='setting'
96 value='[% optin.cust.name | uri %]'
97 [% IF optin.value %] checked='checked' [% END %]/>
103 <input type='submit' value="[% l('Save') %]" alt="[% l('Save') %]" class="opac-button" />