Merge branch 'bug_8931' into 3.12-master
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-account.tt
1 [% USE KohaDates %]
2
3 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="opac-account">
7 <div id="doc3" class="yui-t1">
8    <div id="bd">
9 [% INCLUDE 'masthead.inc' %]
10
11         <div id="yui-main">
12         <div class="yui-b"><div class="yui-g">
13                 <div id="useraccount" class="container">
14 <!--CONTENT-->
15     [% FOREACH BORROWER_INF IN BORROWER_INFO %]
16         <h3><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]'s account</a> &#8674; Fines and charges</h3>
17     [% END %]
18
19     [% IF ( ACCOUNT_LINES ) %]
20         <table>
21             <thead>
22                 <tr>
23                     <th>Date</th>
24                     <th>Description</th>
25                     <th>Fine amount</th>
26                     <th>Amount outstanding</th>
27                 </tr>
28             </thead>
29
30             <tfoot>
31             <tr>
32                 <th class="sum" colspan="3">Total due</th>
33                 <td class="sum">[% total %]</td>
34             </tr>
35             </tfoot>
36
37             <tbody>
38                 [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
39                     [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
40                         <td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
41                         <td>[% ACCOUNT_LINE.description %]
42                         [% IF ( ACCOUNT_LINE.title ) %][% ACCOUNT_LINE.title |html %][% END %]</td>
43                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
44                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
45                     </tr>
46                 [% END %]
47             </tbody>
48
49         </table>
50     [% ELSE %]
51         <h4>You have no fines or charges</h4>
52     [% END %]
53 </div>
54 </div>
55 </div>
56 </div>
57 <div class="yui-b">
58 <div id="leftmenus" class="container">
59 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
60 </div>
61 </div>
62 </div>
63 [% INCLUDE 'opac-bottom.inc' %]