Bug 6273: (follow-up) fix various issues
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-account.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3
4 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your fines and charges
5 [% INCLUDE 'doc-head-close.inc' %]
6 </head>
7 <body id="opac-account">
8 <div id="doc3" class="yui-t1">
9    <div id="bd">
10 [% INCLUDE 'masthead.inc' %]
11
12         <div id="yui-main">
13         <div class="yui-b"><div class="yui-g">
14                 <div id="useraccount" class="container">
15 <!--CONTENT-->
16     [% FOREACH BORROWER_INF IN BORROWER_INFO %]
17         <h3><a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]'s account</a> &#8674; Fines and charges</h3>
18     [% END %]
19
20     [% IF ( ACCOUNT_LINES ) %]
21         <table>
22             <thead>
23                 <tr>
24                     <th>Date</th>
25                     <th>Description</th>
26                     <th>Fine amount</th>
27                     <th>Amount outstanding</th>
28                 </tr>
29             </thead>
30
31             <tfoot>
32             <tr>
33                 <th class="sum" colspan="3">Total due</th>
34                 <td class="sum">[% total %]</td>
35             </tr>
36             </tfoot>
37
38             <tbody>
39                 [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
40                     [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
41                         <td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
42                         <td>
43                           [% SWITCH ACCOUNT_LINE.accounttype %]
44                             [% CASE 'Pay' %]Payment,thanks
45                             [% CASE 'Pay00' %]Payment,thanks (cash via SIP2)
46                             [% CASE 'Pay01' %]Payment,thanks (VISA via SIP2)
47                             [% CASE 'Pay02' %]Payment,thanks (credit card via SIP2)
48                             [% CASE 'N' %]New Card
49                             [% CASE 'F' %]Fine
50                             [% CASE 'A' %]Account management fee
51                             [% CASE 'M' %]Sundry
52                             [% CASE 'L' %]Lost Item
53                             [% CASE 'W' %]Writeoff
54                             [% CASE %][% ACCOUNT_LINE.accounttype %]
55                           [%- END -%]
56                           [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
57                           [% IF line.title %]([% line.title |html_entity %])[% END %]
58                         </td>
59                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
60                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
61                     </tr>
62                 [% END %]
63             </tbody>
64
65         </table>
66     [% ELSE %]
67         <h4>You have no fines or charges</h4>
68     [% END %]
69 </div>
70 </div>
71 </div>
72 </div>
73 <div class="yui-b">
74 <div id="leftmenus" class="container">
75 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
76 </div>
77 </div>
78 </div>
79 [% INCLUDE 'opac-bottom.inc' %]