]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/opac/myopac/prefs_settings.tt2
DB upgrade script for Stripe payments; seed data; minor template fixes
[Evergreen.git] / Open-ILS / src / templates / opac / 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'>
10
11        <table class="full-width data_grid" id="acct_search_main"
12             title="[% l('Search and History Preferences') %]">
13             <tbody>
14
15                 [% IF ctx.updated_user_settings %]
16                 <tr><td colspan='2'>
17                     <div class='renew-summary'>
18                         [% l('Account Successfully Updated') %]
19                     </div>
20                 </td></tr>
21                 [% END %]
22
23                 [%- setting = 'opac.hits_per_page' -%]
24                 <tr >
25                     <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
26                     <td>
27                         <select id='[% setting %]' name='[% setting %]'>
28                             [%  UNLESS ctx.user_setting_map.$setting;
29                                     ctx.user_setting_map.$setting = 10;
30                                 END;
31                                 FOR val IN [5, 8, 10, 15, 20, 25, 50] %]
32                                 <option value='[% val | uri %]' 
33                                     [% IF ctx.user_setting_map.$setting == val %]
34                                         selected='selected'[% END %]>[% val | html %]</option>
35                             [% END %]
36                         </select>
37                         <a href="#"><img alt="[% l('Search Hits Help') %]" 
38                             src="[% ctx.media_prefix %]/images/question-mark.png"
39                         /></a>
40                     </td>
41                 </tr>
42                 [%- setting = 'opac.default_search_location'; -%]
43                 <tr >
44                     <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
45                     <td>
46                         [%- thang = ctx.user.home_ou.id;
47                             IF ctx.user_setting_map.$setting;
48                                 thang = ctx.user_setting_map.$setting;
49                             END;
50                             id = setting;
51                             INCLUDE build_org_selector name=setting value=thang;
52                         %]
53                     </td>
54                 </tr>
55                 [%- setting = 'opac.default_pickup_location'; -%]
56                 <tr>
57                     <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup location") %]</label></td>
58                     <td>
59                         [%- thang = ctx.user.home_ou.id;
60                             IF ctx.user_setting_map.$setting;
61                                 thang = ctx.user_setting_map.$setting;
62                             END;
63                             id = setting;
64                             INCLUDE build_org_selector name=setting value=thang can_have_vols_only=1;
65                         %]
66                     </td>
67                 </tr>
68                 [%- setting = 'history.circ.retention_start' -%]
69                 <tr>
70                     [% circ_name = l('Keep history of checked out items?') %]
71                     <td><label for='[% setting %]'>[% circ_name%]</label></td>
72                     <td>
73                         <input id='[% setting %]' name='[% setting %]' 
74                             type="checkbox" title="[% circ_name %]"
75                             [% IF ctx.user_setting_map.$setting; %] checked='checked' [% END %]/>
76                     </td>
77                 </tr>
78                 [%- setting = 'history.hold.retention_start' -%]
79                 <tr>
80                     [% hold_name =  l('Keep history of holds?') %]
81                     <td><label for='[% setting %]'>[% hold_name %]</label></td>
82                     <td>
83                         <input id='[% setting %]' name='[% setting %]' 
84                             type="checkbox" title="[% hold_name %]"
85                             [% IF ctx.user_setting_map.$setting; %] checked='checked' [% END %]/>
86                     </td>
87                 </tr>
88                 [%- setting = 'opac.temporary_list_no_warn' -%]
89                 <tr>
90                     [% skip_warn =  l('Skip warning when adding to temporary book list?') %]
91                     <td><label for='[% setting %]'>[% skip_warn %]</label></td>
92                     <td>
93                         <input id='[% setting %]' name='[% setting %]' 
94                             type="checkbox" title="[% skip_warn %]"
95                             [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
96                     </td>
97                 </tr>
98                 [%- setting = 'circ.holds_behind_desk'; IF ctx.behind_desk_supported -%]
99                 <tr>
100                     [% behind_desk = l('Pickup holds from behind the desk when possible?') %]
101                     <td><label for='[% setting %]'>[% behind_desk %]</label></td>
102                     <td>
103                         <input id='[% setting %]' name='[% setting %]' 
104                             type="checkbox" title="[% behind_desk %]"
105                             [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
106                     </td>
107                 </tr>
108                 [% END %]
109
110                 <!--
111                 <tr>
112                     <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
113                     <td>
114                         <select id='prefs_def_font'>
115                             <option value='regular'>[% l("Regular Font") %]</option>
116                             <option value='large'>[% l("Large Font") %]</option>
117                         </select>
118                     </td>
119                 </tr>
120                 -->
121
122             </tbody>
123         </table>
124         <input type="submit" value="[% l('Save') %]" class="opac-button"/>
125     </form>
126     [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]
127 [% END %]