746df980741bc932f22a9160fca33630f5f6a0d4
[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.list_items_per_page' -%]
21                 <tr >
22                     <td width='20%'><label for='[% setting %]'>[%l("List items 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, 50] %]
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 list items displayed per page when viewing a selected list.') %]"
37                         />
38                     </td>
39                 </tr>
40             </tbody>
41         </table>
42         <input type="submit" value="[% l('Save') %]" alt="[% l('Save') %]" class="opac-button"/>
43     </form>
44     [% INCLUDE "opac/parts/myopac/prefs_hints.tt2" %]
45 [% END %]