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') %]
23 <td>[% l('Notify by Email by default when a hold is ready for pickup?') %]</td>
25 [% setting = 'opac.hold_notify' %]
26 <input name='[% setting %].email' type="checkbox"
27 [% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/>
30 [%- IF allow_phone_notifications == 'true' %]
32 <td>[% l('Notify by Phone by default when a hold is ready for pickup?') %]</td>
34 [% setting = 'opac.hold_notify' %]
35 <input name='[% setting %].phone' type="checkbox"
36 [% IF (matches = ctx.user_setting_map.$setting.match('phone')); %] checked='checked' [% END %]/>
40 <td>[% l('Default Phone Number') %]</td>
42 [% setting = 'opac.default_phone' %]
43 <input name='[% setting %]' type="text"
44 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
48 [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]
50 <td>[% l('Notify by Text by default when a hold is ready for pickup?') %]</td>
52 [% setting = 'opac.hold_notify' %]
53 <input name='[% setting %].sms' type="checkbox"
54 [% IF (matches = ctx.user_setting_map.$setting.match('sms')); %] checked='checked' [% END %]/>
58 <td>[% l('Default Mobile Carrier') %]</td>
59 <td>[% INCLUDE "opac/parts/sms_carrier_selector.tt2" sms_carrier_hide_label="true" %]</td>
62 <td>[% l('Default Mobile Number') %]</td>
64 [% setting = 'opac.default_sms_notify' %]
65 <input name='[% setting %]' type="text"
66 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
67 [% l('Hint: use the full 10 digits of your phone #, no spaces, no dashes'); %]
76 <th>[% l('Notification Type') %]</th>
77 <th>[% l('Enabled') %]</th>
79 <tbody class='data_grid'>
80 [% IF optin.size == 0 %]
81 <strong>[% l('No notification preferences are configured') %]</strong>
83 [% FOR optin IN ctx.opt_in_settings %]
85 <td>[% optin.cust.label | html %]</td>
87 <input type='checkbox' name='setting'
88 value='[% optin.cust.name | uri %]'
89 [% IF optin.value %] checked='checked' [% END %]/>
95 <input type='submit' value="[% l('Save') %]" alt="[% l('Save') %]" class="opac-button" />