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