Bug 2546: make description of standard fine types translatable
[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 'N' %]New Card
46                             [% CASE 'F' %]Fine
47                             [% CASE 'A' %]Account management fee
48                             [% CASE 'M' %]Sundry
49                             [% CASE 'L' %]Lost Item
50                             [% CASE 'W' %]Writeoff
51                             [% CASE %][% ACCOUNT_LINE.accounttype %]
52                           [%- END -%]
53                           [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
54                           [% IF line.title %]([% line.title |html_entity %])[% END %]
55                         </td>
56                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
57                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
58                     </tr>
59                 [% END %]
60             </tbody>
61
62         </table>
63     [% ELSE %]
64         <h4>You have no fines or charges</h4>
65     [% END %]
66 </div>
67 </div>
68 </div>
69 </div>
70 <div class="yui-b">
71 <div id="leftmenus" class="container">
72 [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
73 </div>
74 </div>
75 </div>
76 [% INCLUDE 'opac-bottom.inc' %]