Foundational work for temporary/anon lists and per-user lists (bookbags)
[evergreen-equinox.git] / Open-ILS / web / templates / default / opac / parts / anon_list.tt2
1         [% IF ctx.mylist.size %]
2         <div id='acct_list_template2'>
3             <div style="width:100%">
4                 <table cellpadding="0" cellspacing="0" border="0">
5                     <tr>
6                         <td id='anon_list_name'>
7                             [% l('Temporary List') %]
8                         </td>
9                         <td>
10                             <a href="#"><img
11                                 alt="[% l('Anonymous List Help') %]"
12                                 src="[% ctx.media_prefix %]/images/question-mark.png" /></a>
13                         </td>
14                     </tr>
15                 </table>
16                 <div class="float-right"></div>
17                 <div class="clear-both pad-bottom-five"></div>
18             </div>
19             <table id="acct_list_header_anon" cellpadding='0' cellspacing='0' border='0'>
20                 <tr>
21                     <td width="1%" style="padding-left:10px;"><input type="checkbox"/>
22                     </td>
23                     <td width="98%" style="padding-left:5px;">[% l('Title') %]</td>
24                     <td width="1%">
25                         <select class="opac-auto-179"
26                             name="list_actions" id="sel_all_list_anon">
27                             <option value="0">[% l('-- Actions for this list --') %]</option>
28                             <option value="hold">[% l('Place Hold') %]</option>
29                             <option value="remove">[% l('Remove Items') %]</option>
30                         </select>
31                     </td>
32                 </tr>
33             </table>
34             <table cellpadding='0' cellspacing='5' border='0'
35                 width='91%' style='margin-left:5px;margin-top:5px;'>
36                 <tbody id='anon_list_tbody'>
37                     [% FOR item IN ctx.mylist;
38                         attrs = {marc_xml => ctx.mylist_marc_xml.$item};
39                         PROCESS get_marc_attrs args=attrs %]
40                     <tr>
41                         <td>[% attrs.title %]</td>
42                     </tr>
43                     [% END %]
44                 </tbody>
45             </table>
46             <br /><br />
47         </div>
48         [% END %]