7b27be7fe940a235a64e11dc9799a2947ed4a7da
[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 = 'settings' %]
6
7
8     <form method='post'>
9
10        <table class="full-width data_grid" id="acct_search_main">
11             <tbody>
12
13                 [% IF ctx.updated_user_settings %]
14                 <tr><td colspan='2'>
15                     <div class='renew-summary'>
16                         [% l('Account Successfully Updated') %]
17                     </div>
18                 </td></tr>
19                 [% END %]
20
21                 [%- setting = 'opac.hits_per_page' -%]
22                 <tr >
23                     <td width='20%'><label for='[% setting %]'>[% l("Search hits per page") %]</label></td>
24                     <td>
25                         <select id='[% setting %]' name='[% setting %]'>
26                             [%  UNLESS ctx.user_setting_map.$setting;
27                                     ctx.user_setting_map.$setting = 10;
28                                 END;
29                                 FOR val IN [5, 8, 10, 15, 20, 25, 50] %]
30                                 <option value='[% val | uri %]' 
31                                     [% IF ctx.user_setting_map.$setting == val %]
32                                         selected='selected'[% END %]>[% val | html %]</option>
33                             [% END %]
34                         </select>
35                         <a href="#"><img alt="[% l('Search Hits Help') %]" 
36                             src="[% ctx.media_prefix %]/images/question-mark.png"
37                         /></a>
38                     </td>
39                 </tr>
40                 [%- setting = 'opac.default_search_location'; -%]
41                 <tr >
42                     <td width='20%'><label for='[% setting %]'>[% l("Preferred search location") %]</label></td>
43                     <td>
44                         [%- thang = ctx.user.home_ou.id;
45                             IF ctx.user_setting_map.$setting;
46                                 thang = ctx.user_setting_map.$setting;
47                             END;
48                             id = setting;
49                             INCLUDE build_org_selector name=setting value=thang;
50                         %]
51                     </td>
52                 </tr>
53                 [%- setting = 'opac.default_pickup_location'; -%]
54                 <tr>
55                     <td width='20%'><label for='[% setting %]'>[% l("Preferred pickup location") %]</label></td>
56                     <td>
57                         [%- thang = ctx.user.home_ou.id;
58                             IF ctx.user_setting_map.$setting;
59                                 thang = ctx.user_setting_map.$setting;
60                             END;
61                             id = setting;
62                             INCLUDE build_org_selector name=setting value=thang can_have_vols_only=1;
63                         %]
64                     </td>
65                 </tr>
66                 [%- setting = 'history.circ.retention_start' -%]
67                 <tr>
68                     <td><label for='[% setting %]'>[% l('Keep history of checked out items?') %]</label></td>
69                     <td>
70                         <input id='[% setting %]' name='[% setting %]' type="checkbox"
71                             [% IF ctx.user_setting_map.$setting; %] checked='checked' [% END %]/>
72                     </td>
73                 </tr>
74                 [%- setting = 'history.hold.retention_start' -%]
75                 <tr>
76                     <td><label for='[% setting %]'>[% l('Keep history of holds?') %]</label></td>
77                     <td>
78                         <input id='[% setting %]' name='[% setting %]' type="checkbox"
79                             [% IF ctx.user_setting_map.$setting; %] checked='checked' [% END %]/>
80                     </td>
81                 </tr>
82                 [%- setting = 'opac.temporary_list_no_warn' -%]
83                 <tr>
84                     <td><label for='[% setting %]'>[% l('Skip warning when adding to temporary book list?') %]</label></td>
85                     <td>
86                         <input id='[% setting %]' name='[% setting %]' type="checkbox"
87                             [% IF ctx.user_setting_map.$setting %] checked='checked' [% END %]/>
88                     </td>
89                 </tr>
90                 <!--
91                 <tr>
92                     <td><label for='prefs_def_font'>[% l("Default Font Size") %]</label></td>
93                     <td>
94                         <select id='prefs_def_font'>
95                             <option value='regular'>[% l("Regular Font") %]</option>
96                             <option value='large'>[% l("Large Font") %]</option>
97                         </select>
98                     </td>
99                 </tr>
100                 -->
101
102             </tbody>
103         </table>
104         <input type="submit" value="[% l('Save') %]" alt="[% l('Save') %]" class="opac-button"/>
105     </form>
106     [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]
107 [% END %]