]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/web/templates/default/opac/myopac/holds.tt2
Holds editing is totally giraffes for the moment
[working/Evergreen.git] / Open-ILS / web / templates / default / opac / myopac / holds.tt2
1 [% BLOCK html_head %]
2 <style>
3     table { width: 100%; text-align: center; padding: 20px; margin-top: 30px; }
4     table { border-collapse: collapse; }
5     table { padding: 3px; border-bottom: 1px solid #ddd; text-align: left;}
6     table tr:nth-child(odd) { background-color:#ded; }
7     #action_div { width: 95%; }
8     #action-buttons { float:right; }
9 </style>
10 [% END %]
11
12 [% PROCESS "default/opac/common.tt2" %]
13 [% WRAPPER "default/opac/base.tt2" %]
14 [% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "holds" %]
15 <form method='POST'>
16
17     <div id='action_div'>
18         <div id='action-buttons'>
19             <select name='action'>
20                 <option value='cancel'>Cancel Selected</option>
21                 <option value='cancel_all'>Cancel All</option>
22                 <option value='suspend'>Suspend Selected</option>
23                 <option value='suspend_all'>Suspend All</option>
24                 <option value='activate'>Activate Selected</option>
25                 <option value='activate_all'>Activate All</option>
26             </select>
27             <input type='Submit' value='Go'/>
28         </div>
29     </div>
30
31     <table>
32         <thead>
33             <tr>
34                 <th>Title</th>
35                 <th>Author</th>
36                 <th>Formats</th>
37                 <th>Pickup Location</th>
38                 <th>Status</th>
39                 <th>Active</th>
40                 <th>Activate on...</th>
41                 <th>Expiration Date</th>
42                 <th>Select</th>
43             </tr>
44         </thead>
45         <tbody>
46             [% FOR hold IN ctx.holds %]
47                 [% attrs = {marc_xml => hold.marc_xml}; %]
48                 [% PROCESS get_marc_attrs args=attrs; %]
49             <tr>
50                 <td>[% attrs.title %]</td>
51                 <td>[% attrs.author %]</td>
52                 <td>[% hold.hold.hold.holdable_formats %]<!-- see _myOPACFleshHoldTitle(), search for "mods_formats" in skin/default/js/myopac.js; holdable_formats is wrong --></td>
53                 <td>[% ctx.find_aou(hold.hold.hold.pickup_lib).name %]</td>
54                 <td>[% hold.hold.hold.status %]<!-- see myOShowHoldStatus() in skin/default/js/myopac.js --></td>
55                 <td>[% IF hold.hold.hold.frozen == 't' %] No [% ELSE %] Yes [% END %]</td>
56                 <td>[% 
57                     IF hold.hold.hold.frozen == 't' AND hold.hold.hold.thaw_date;
58                         date.format(ctx.parse_datetime(hold.hold.hold.thaw_date),'%Y-%m-%d'); 
59                     END 
60                 %]</td>
61                 <td>[% hold.hold.hold.expire_time %]</td>
62                 <td><input type='checkbox' name='hold_id' value='[% hold.hold.hold.id %]'/></td>
63             </tr>
64             [% END %]
65         </tbody>
66     </table>
67 </form> 
68 [% END %]