initial support for renew all and renew selected, w/ stub template implementation...
[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     #action_div { width: 95%; text-align: right }
8 </style>
9 [% END %]
10
11 [% PROCESS "default/opac/common.tt2" %]
12 [% WRAPPER "default/opac/base.tt2" %]
13 [% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "circs" %]
14 [% USE date %]
15
16 <form method='POST'>
17     <div id='action_div'>
18         <button type='submit' value='renew' name='action'>Renew Selected</button>
19         <button type='submit' value='renew_all' name='action'>Renew All</button>
20     </div>
21     <table>
22         <thead>
23             <tr>
24                 <th>Title</th>
25                 <th>Author</th>
26                 <th>Due Date</th>
27                 <th>Renewals Remaining</th>
28                 <th>Select</th>
29             </tr>
30         </thead>
31         <tbody>
32             [% FOR circ IN ctx.circs %]
33                 [% attrs = {marc_xml => circ.marc_xml}; %]
34                 [% PROCESS get_marc_attrs args=attrs; %]
35                 <tr>
36                     <td>[% attrs.title %]</td>
37                     <td>[% attrs.author %]</td>
38                     <td>[% date.format(ctx.parse_datetime(circ.circ.due_date),'%Y-%m-%d') %]</td>
39                     <td><em>[% circ.circ.renewal_remaining %]</em></td>
40                     <td><input name='circ' value='[% circ.circ.id %]' type='checkbox'/></td>
41                 </tr>
42             [% END %]
43         </tbody>
44     </table>
45 </form>
46
47 [% END %]