]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/templates/default/opac/parts/anon_list.tt2
Repaired merge conflicts resuling from ttopac-move-templates
[working/Evergreen.git] / Open-ILS / src / templates / default / opac / parts / anon_list.tt2
1         [% IF ctx.mylist.size %]
2         <form action="[% ctx.opac_root %]/mylist/move" method="POST">
3         <div id='acct_list_template2'>
4             <div style="width:100%">
5                 <table cellpadding="0" cellspacing="0" border="0">
6                     <tr>
7                         <td id='anon_list_name'>
8                             [% l('Temporary List') %]
9                         </td>
10                         <td>
11                             <!-- <a href="#"><img
12                                 alt="[% l('Anonymous List Help') %]"
13                                 src="[% ctx.media_prefix %]/images/question-mark.png" /></a>-->
14                         </td>
15                     </tr>
16                 </table>
17                 <div class="float-right"></div>
18                 <div class="clear-both pad-bottom-five"></div>
19             </div>
20             <table cellpadding='0' cellspacing='0' border='0'>
21                 <thead id="acct_list_header_anon">
22                     <tr>
23                         <td width="1%" style="padding-left:10px;">
24                             <input type="checkbox" onclick="
25                                 var inputs=document.getElementsByTagName('input'); 
26                                 for (i = 0; i < inputs.length; i++) { 
27                                     if (inputs[i].name == 'record' && !inputs[i].disabled) inputs[i].checked = this.checked;}"/>
28                         </td>
29                         <td width="49%" style="padding-left:5px;">[% l('Title') %]</td>
30                         <td width="49%" style="padding-left:5px;">[% l('Author(s)') %]</td>
31                         <td width="1%" class="nowrap">
32                             <select class="opac-auto-179" name="action">
33                                 <option>[% l('-- Actions for this list --') %]</option>
34                                 <!-- XXX not ready <option value="hold">[% l('Place Hold') %]</option> -->
35                                 <option value="delete">[% l('Remove Items') %]</option>
36                                 [% IF ctx.user AND ctx.bookbags.size %]
37                                 <optgroup label="Move selected items to">
38                                     [% FOR bbag IN ctx.bookbags %]]
39                                     <option value="[% bbag.id %]" class="opac-auto-179-inner-option">[% bbag.name %]</option>
40                                     [% END %]
41                                 </optgroup>
42                                 [% END %]
43                             </select>
44                             <input type="submit" value="[% l('Go') %]" />
45                         </td>
46                     </tr>
47                 </thead>
48                 <tbody id='anon_list_tbody'>
49                     [% FOR item IN ctx.mylist;
50                         attrs = {marc_xml => ctx.mylist_marc_xml.$item};
51                         PROCESS get_marc_attrs args=attrs %]
52                     <tr>
53                         <td class="opac-auto-097b" style="padding-left: 10px;">
54                             <input type="checkbox" name="record" value="[% item %]" />
55                         </td>
56                         <td class="opac-auto-097b" style="padding-left: 5px;">[% attrs.title %]</td>
57                         <td class="opac-auto-097b" style="padding-left: 5px;">[% attrs.author %]</td>
58                     </tr>
59                     [% END %]
60                 </tbody>
61             </table>
62             <br /><br />
63         </div>
64         </form>
65         [% END %]