show some circs in myopac -> items out
[evergreen-equinox.git] / Open-ILS / web / templates / default / opac / myopac / circs.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 </style>
8 [% END %]
9
10 [% PROCESS "default/opac/common.tt2" %]
11 [% WRAPPER "default/opac/base.tt2" %]
12 [% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "circs" %]
13 [% USE date %]
14 <table>
15     <thead>
16         <tr>
17             <th>Title</th>
18             <th>Author</th>
19             <th>Due Date</th>
20             <th>Renewals Remaining</th>
21             <th>Select</th>
22         </tr>
23     </thead>
24     <tbody>
25         [% FOR circ IN ctx.circs %]
26             [% attrs = {marc_xml => circ.marc_xml}; %]
27             [% PROCESS get_marc_attrs args=attrs; %]
28             <tr>
29                 <td>[% attrs.title %]</td>
30                 <td>[% attrs.author %]</td>
31                 <td>[% date.format(ctx.parse_datetime(circ.circ.due_date),'%Y-%m-%d') %]</td>
32                 <td><em>[% circ.circ.renewal_remaining %]</em></td>
33                 <td><em>XXX TODO</em></td>
34             </tr>
35         [% END %]
36     </tbody>
37 </table>
38
39 [% END %]