LP1164197 - Add page number navigation to my lists and setting for number of lists...
[working/Evergreen.git] / Open-ILS / src / templates / opac / myopac / prefs_my_lists.tt2
1 [%  PROCESS "opac/parts/header.tt2";
2     WRAPPER "opac/parts/myopac/prefs_base.tt2";
3     myopac_page = "prefs";
4     prefs_page = 'my_lists' %]
5
6
7     <form method='post'>
8
9        <table class="full-width data_grid" id="acct_search_main">
10             <tbody>
11
12                 [% IF ctx.updated_user_settings %]
13                 <tr><td colspan='2'>
14                     <div class='renew-summary'>
15                         [% l('Account Successfully Updated') %]
16                     </div>
17                 </td></tr>
18                 [% END %]
19
20                 [%- setting = 'opac.lists_per_page' -%]
21                 <tr >
22                     <td width='20%'><label for='[% setting %]'>[%l("Lists per page") %]</label></td>
23                     <td>
24                         <select id='[% setting %]' name='[% setting %]'>
25                             [%  UNLESS ctx.user_setting_map.$setting;
26                                     ctx.user_setting_map.$setting = 10;
27                                 END;
28                                 FOR val IN [10, 15, 20, 25] %]
29                                 <option value='[% val | uri %]' 
30                                     [% IF ctx.user_setting_map.$setting == val %]
31                                         selected='selected'[% END %]>[% val | html %]</option>
32                             [% END %]
33                         </select>
34                         <img alt="[% l('List Items Help') %]"
35                             src="[% ctx.media_prefix %]/images/question-mark.png"
36                             title="[% l('The number of lists displayed per page.') %]"
37                         />
38                     </td>
39                 </tr>
40                 [%- setting = 'opac.list_items_per_page' -%]
41                 <tr >
42                     <td width='20%'><label for='[% setting %]'>[%l("List items per page") %]</label></td>
43                     <td>
44                         <select id='[% setting %]' name='[% setting %]'>
45                             [%  UNLESS ctx.user_setting_map.$setting;
46                                     ctx.user_setting_map.$setting = 10;
47                                 END;
48                                 FOR val IN [10, 15, 20, 25, 50] %]
49                                 <option value='[% val | uri %]' 
50                                     [% IF ctx.user_setting_map.$setting == val %]
51                                         selected='selected'[% END %]>[% val | html %]</option>
52                             [% END %]
53                         </select>
54                         <img alt="[% l('List Items Help') %]"
55                             src="[% ctx.media_prefix %]/images/question-mark.png"
56                             title="[% l('The number of list items displayed per page when viewing a selected list.') %]"
57                         />
58                     </td>
59                 </tr>
60             </tbody>
61         </table>
62         <input type="submit" value="[% l('Save') %]" alt="[% l('Save') %]" class="opac-button"/>
63     </form>
64     [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]
65 [% END %]