]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/myopac/prefs_notify.tt2
Fix spelling error of "Successfully" in ils_events.xml
[Evergreen.git] / Open-ILS / src / templates / opac / myopac / prefs_notify.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     WRAPPER "opac/parts/myopac/prefs_base.tt2";
3     myopac_page = "prefs";
4     prefs_page = 'notify' %]
5
6 <form method='post'>
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 %]/>
10
11     <table class="full-width data_grid" id="acct_search_main">
12         <tbody>
13
14             [% IF ctx.updated_user_settings %]
15             <tr><td colspan='2'>
16                 <div class='renew-summary'>
17                     [% l('Account Successfully Updated') %]
18                 </div>
19             </td></tr>
20             [% END %]
21
22             <tr>
23                 <td>[% l('Notify by Email by default when a hold is ready for pickup?') %]</td>
24                 <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 %]/>
28                 </td>
29             </tr>
30             [%- IF allow_phone_notifications == 'true' %]
31             <tr>
32                 <td>[% l('Notify by Phone by default when a hold is ready for pickup?') %]</td>
33                 <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 %]/>
37                 </td>
38             </tr>
39             <tr>
40                 <td>[% l('Default Phone Number') %]</td>
41                 <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 %]/>
45                 </td>
46             </tr>
47             [%- END %]
48             [% IF ctx.get_org_setting(ctx.search_ou, 'sms.enable') == 1 %]
49             <tr>
50                 <td>[% l('Notify by Text by default when a hold is ready for pickup?') %]</td>
51                 <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 %]/>
55                 </td>
56             </tr>
57             <tr>
58                 <td>[% l('Default Mobile Carrier') %]</td>
59                 <td>[% INCLUDE "opac/parts/sms_carrier_selector.tt2" sms_carrier_hide_label="true" %]</td>
60             </tr>
61             <tr>
62                 <td>[% l('Default Mobile Number') %]</td>
63                 <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'); %]
68                 </td>
69             </tr>
70             [% END %]
71         </tbody>
72     </table>
73  
74     <table>
75         <thead><tr>
76             <th>[% l('Notification Type') %]</th>
77             <th>[% l('Enabled') %]</th>
78         </tr></thead>
79         <tbody class='data_grid'>
80             [% IF optin.size == 0 %]
81                 <strong>[% l('No notification preferences are configured') %]</strong>
82             [% END %]
83             [% FOR optin IN ctx.opt_in_settings %]
84                 <tr>
85                     <td>[% optin.cust.label | html %]</td>
86                     <td>
87                         <input type='checkbox' name='setting' 
88                             value='[% optin.cust.name | uri %]' 
89                             [% IF optin.value %] checked='checked' [% END %]/>
90                     </td>
91                 </tr>
92             [% END %]
93         </tbody>
94     </table>
95     <input type='submit' value="[% l('Save') %]" alt="[% l('Save') %]" class="opac-button" />
96 </form>
97 [% END %]
98
99