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 h2 { margin-bottom: 0; }
11 [% PROCESS "default/opac/common.tt2" %]
12 [% WRAPPER "default/opac/base.tt2" %]
13 [% INCLUDE "default/opac/myopac/_links.tt2" myopac_page = "fines" %]
25 <td>[% money(ctx.fines.total_owed) %]</td>
26 <td>[% money(ctx.fines.total_paid) %]</td>
27 <td>[% money(ctx.fines.balance_owed) %]</td>
32 [% IF ctx.fines.circulation.size > 0 %]
33 <h2>Overdue materials</h2>
39 <th>Checkout Date</th>
41 <th>Date Returned</th>
46 [% FOR f IN ctx.fines.circulation %]
47 [% attrs = {marc_xml => f.marc_xml}; %]
48 [% PROCESS get_marc_attrs args=attrs; %]
50 <td>[% attrs.title %]</td>
51 <td>[% attrs.author %]</td>
53 ctx.parse_datetime(f.xact.circulation.xact_start), "%Y-%m-%d"
56 ctx.parse_datetime(f.xact.circulation.due_date), "%Y-%m-%d"
59 IF f.xact.circulation.checkin_time;
61 ctx.parse_datetime(f.xact.circulation.checkin_time),
64 END %]</td><!-- XXX TODO display stop_fines_time if set? Display something instead of blank like "fines accruing" ? -->
65 <td>[% money(f.xact.balance_owed) %]</td>
72 [% IF ctx.fines.grocery.size > 0 %]
77 <th>Transaction Start Time</th>
78 <th>Last Payment Time</th>
79 <th>Initial Amount Owed</th>
80 <th>Total Amount Paid</th>
86 [% FOR f IN ctx.fines.grocery %]
90 ctx.parse_datetime(f.xact.xact_start), "%Y-%m-%d"
92 <td>[% IF f.xact.last_payment_ts;
94 ctx.parse_datetime(f.xact.last_payment_ts), "%Y-%m-%d"
97 <td>[% money(f.xact.total_owed) %]</td>
98 <td>[% money(f.xact.total_paid) %]</td>
99 <td>[% money(f.xact.balance_owed) %]</td>
100 <td>[% f.xact.last_billing_type %]</td>