]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac-new/myopac/prefs_settings.tt2
LP#1778972: (follow-up) remove a NFPL-specific template
[Evergreen.git] / Open-ILS / src / templates / opac-new / myopac / prefs_settings.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     PROCESS "opac/parts/org_selector.tt2";
3     WRAPPER "opac/parts/myopac/prefs_base.tt2";
4     myopac_page = "prefs";
5     prefs_page = 'prefs_settings' %]
6
7     <h3 class="sr-only">[% l('Search and History Preferences') %]</h3>
8
9     <form method='post' action="prefs_settings">
10
11        <table class="full-width table" id="acct_search_main"
12             title="[% l('Search and History Preferences') %]">
13             <tbody>
14
15                 [% IF ctx.confirm_history_delete %]
16                 <tr><td colspan='2'>
17                   <div id='clear-history-confirm' class='renew-summary text-center'>
18                   [% l('Disabling checkout or holds history will permanently remove all items from your history.') %]
19                   <br/>
20                   [% l('Are you sure you wish to continue?') %]
21                   <br>
22                   <a href="[% mkurl() %]" class="btn btn-deny">[% l('Cancel') %]</a>
23                   <input type='hidden' name='history_delete_confirmed' value='1'/>
24                   <input type="submit" value="[% l('Confirm') %]" class="btn btn-confirm"/>
25                   </div>
26                 </td></tr>
27                 [% ELSIF ctx.updated_user_settings OR ctx.updated_waiver_entries %]
28                 <tr><td colspan='2'>
29                     <div class='renew-summary'>
30                         [% l('Account Successfully Updated') %]
31                     </div>
32                 </td></tr>
33                 [% END %]
34
35                 [%- setting = 'opac.hits_per_page' -%]
36                 <tr >
37                     <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
38                     <td>
39                         <select class="form-control mini-control" id='[% setting %]' name='[% setting %]'>
40                             [%  UNLESS ctx.user_setting_map.$setting;
41                                     ctx.user_setting_map.$setting = 10;
42                                 END;
43                                 FOR val IN [5, 8, 10, 15, 20, 25, 50] %]
44                                 <option value='[% val | uri %]' 
45                                     [% IF ctx.user_setting_map.$setting == val %]
46                                         selected='selected'[% END %]>[% val | html %]</option>
47                             [% END %]
48                         </select>
49                        <a href="#"><img alt="[% l('Search Hits Help') %]" 
50                             src="[% ctx.media_prefix %]/images/question-mark.png[% ctx.cache_key %]"
51                         /></a>
52                     </td>
53                 </tr>
54                 [%- setting = 'opac.default_search_location'; -%]
55                 <tr >
56                     <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
57                     <td>
58                         [%- thang = ctx.user.home_ou.id;
59                             IF ctx.user_setting_map.$setting;
60                                 thang = ctx.user_setting_map.$setting;
61                             END;
62                             id = setting;
63                             INCLUDE build_org_selector name=setting value=thang;
64                         %]
65                     </td>
66                 </tr>
67                 [%- setting = 'opac.default_pickup_location'; -%]
68                 <tr>
69                     <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup location") %]</label></td>
70                     <td>
71                         [%- thang = ctx.user.home_ou.id;
72                             IF ctx.user_setting_map.$setting;
73                                 thang = ctx.user_setting_map.$setting;
74                             END;
75                             id = setting;
76                             INCLUDE build_org_selector name=setting value=thang can_have_vols_only=1;
77                         %]
78                     </td>
79                 </tr>
80                 [%- setting = 'history.circ.retention_start' -%]
81                 <tr>
82                     [% circ_name = l('Keep history of checked out items?') %]
83                     <td><label for='[% setting %]'>[% circ_name%]</label></td>
84                     <td>
85                         <input id='[% setting %]' name='[% setting %]' 
86                             type="checkbox" title="[% circ_name %]"
87                             [% IF ctx.user_setting_map.$setting 
88                               AND !ctx.clear_circ_history; %] checked='checked' [% END %]/>
89                     </td>
90                 </tr>
91                 [%- setting = 'history.hold.retention_start' -%]
92                 <tr>
93                     [% hold_name =  l('Keep history of holds?') %]
94                     <td><label for='[% setting %]'>[% hold_name %]</label></td>
95                     <td>
96                         <input id='[% setting %]' name='[% setting %]' 
97                             type="checkbox" title="[% hold_name %]"
98                             [% IF ctx.user_setting_map.$setting
99                               AND !ctx.clear_hold_history; %] checked='checked' [% END %]/>
100                     </td>
101                 </tr>
102                 [%- setting = 'opac.temporary_list_no_warn' -%]
103                 <tr>
104                     [% skip_warn =  l('Skip warning when adding to temporary book list?') %]
105                     <td><label for='[% setting %]'>[% skip_warn %]</label></td>
106                     <td>
107                         <input id='[% setting %]' name='[% setting %]' 
108                             type="checkbox" title="[% skip_warn %]"
109                             [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
110                     </td>
111                 </tr>
112                 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
113                 <tr>
114                     [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
115                     <td><label for='[% setting %]'>[% behind_desk %]</label></td>
116                     <td>
117                         <input id='[% setting %]' name='[% setting %]' 
118                             type="checkbox" title="[% behind_desk %]"
119                             [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
120                     </td>
121                 </tr>
122                 [% END %]
123
124   [%- IF ctx.get_org_setting(ctx.user.home_ou.id, 'circ.privacy_waiver'); %]
125                 <tr>
126                     <td>[% l('Allow others to use my account') %]</td>
127                     <td>
128                         [% FOR waiver IN ctx.user.waiver_entries %]
129                         <div id="waiver_[% waiver.id %]">
130                             <input type="hidden" name="waiver_id" value="[% waiver.id %]"/>
131                             [% l('Name:') %] <input type="textbox" name="waiver_name_[% waiver.id %]" value="[% waiver.name | html %]"/><br/>
132                             <label>
133                                 <input type="checkbox" name="waiver_place_holds" 
134                                     value="[% waiver.id %]" [% waiver.place_holds == 't' ? 'checked="checked"' : '' %]/>
135                                 [% l('Place Holds') %]
136                             </label>
137                             <label>
138                                 <input type="checkbox" name="waiver_pickup_holds"
139                                     value="[% waiver.id %]" [% waiver.pickup_holds == 't' ? 'checked="checked"' : '' %]/>
140                                 [% l('Pick Up Holds') %]
141                             </label>
142                             <label>
143                                 <input type="checkbox" name="waiver_checkout_items"
144                                     value="[% waiver.id %]" [% waiver.checkout_items == 't' ? 'checked="checked"' : '' %]/>
145                                 [% l('Check Out Items') %]
146                             </label>
147                             <label>
148                                 <input type="checkbox" name="waiver_view_history"
149                                     value="[% waiver.id %]" [% waiver.view_history == 't' ? 'checked="checked"' : '' %]/>
150                                 [% l('View Borrowing History') %]
151                             </label>
152                         </div>
153                         [% END %]
154                         <br/>
155                         <div>
156                             [% l('Name:') %] <input type="textbox" name="waiver_name_new"/><br/>
157                             <label><input type="checkbox" name="waiver_place_holds" value="new"/>[% l('Place Holds') %]</label>
158                             <label><input type="checkbox" name="waiver_pickup_holds" value="new"/>[% l('Pick Up Holds') %]</label>
159                             <label><input type="checkbox" name="waiver_checkout_items" value="new"/>[% l('Check Out Items') %]</label>
160                             <label><input type="checkbox" name="waiver_view_history" value="new"/>[% l('View Borrowing History') %]</label>
161                         </div>
162                     </td>
163                 </tr>
164                 [% END %]
165
166                 <!--
167                 <tr>
168                     <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
169                     <td>
170                         <select id='prefs_def_font'>
171                             <option value='regular'>[% l("Regular Font") %]</option>
172                             <option value='large'>[% l("Large Font") %]</option>
173                         </select>
174                     </td>
175                 </tr>
176                 -->
177
178             </tbody>
179         </table>
180         [% IF !ctx.confirm_history_delete %]
181         <input type="submit" value="[% l('Save') %]" class="btn btn-confirm"/>
182         [% END %]
183     </form>
184     [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]
185 [% END %]