1 [% PROCESS "opac/parts/header.tt2";
2 WRAPPER "opac/parts/myopac/prefs_base.tt2";
3 myopac_page = "prefs_notify";
4 prefs_page = 'notify' %]
8 <div style="float:right;width:65px;">
10 value="[% l('Save') %]"
12 class="opac-button" />
15 [% setting = 'opac.hold_notify' %]
16 <input name='[% setting %]' type="hidden"
17 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
19 <table class="full-width data_grid" id="acct_search_main">
22 [% IF ctx.updated_user_settings %]
24 <div class='renew-summary'>
25 [% l('Account Successfully Updated') %]
31 <td>[% l('Notify by Email by default when a hold is ready for pickup?') %]</td>
33 [% setting = 'opac.hold_notify' %]
34 <input name='[% setting %].email' type="checkbox"
35 [% IF (matches = ctx.user_setting_map.$setting.match('email')); %] checked='checked' [% END %]/>
39 <td>[% l('Notify by Phone by default when a hold is ready for pickup?') %]</td>
41 [% setting = 'opac.hold_notify' %]
42 <input name='[% setting %].phone' type="checkbox"
43 [% IF (matches = ctx.user_setting_map.$setting.match('phone')); %] checked='checked' [% END %]/>
47 <td>[% l('Default Phone Number') %]</td>
49 [% setting = 'opac.default_phone' %]
50 <input name='[% setting %]' type="text"
51 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
54 [% IF ctx.get_org_setting(CGI.param('loc') OR ctx.aou_tree.id, 'sms.enable') == 1 %]
56 <td>[% l('Notify by Text by default when a hold is ready for pickup?') %]</td>
58 [% setting = 'opac.hold_notify' %]
59 <input name='[% setting %].sms' type="checkbox"
60 [% IF (matches = ctx.user_setting_map.$setting.match('sms')); %] checked='checked' [% END %]/>
64 <td>[% l('Default Mobile Carrier') %]</td>
65 <td>[% INCLUDE "opac/parts/sms_carrier_selector.tt2" sms_carrier_hide_label="true" %]</td>
68 <td>[% l('Default Mobile Number') %]</td>
70 [% setting = 'opac.default_sms_notify' %]
71 <input name='[% setting %]' type="text"
72 [% IF ctx.user_setting_map.$setting; %] value='[% ctx.user_setting_map.$setting | html %]' [% END %]/>
73 [% l('Hint: use the full 10 digits of your phone #, no spaces, no dashes'); %]
82 <th>[% l('Notification Type') %]</th>
83 <th>[% l('Enabled') %]</th>
85 <tbody class='data_grid'>
86 [% IF optin.size == 0 %]
87 <strong>[% l('No notification preferences are configured') %]</strong>
89 [% FOR optin IN ctx.opt_in_settings %]
91 <td>[% optin.cust.label | html %]</td>
93 <input type='checkbox' name='setting'
94 value='[% optin.cust.name | uri %]'
95 [% IF optin.value %] checked='checked' [% END %]/>