1212bdb0449327f9fe346c0b8da73f2c099f6f98
[srvgit] / koha-tmpl / opac-tmpl / bootstrap / 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 [% BLOCK cssinclude %][% END %]
7 </head>
8 <body id="opac-account" class="scrollto">
9 [% INCLUDE 'masthead.inc' %]
10
11 <div class="main">
12     <ul class="breadcrumb">
13         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
14         <li>[% FOREACH BORROWER_INF IN BORROWER_INFO %]<a href="/cgi-bin/koha/opac-user.pl">[% BORROWER_INF.firstname %] [% BORROWER_INF.surname %]</a>[% END %] <span class="divider">&rsaquo;</span></li>
15         <li><a href="#">Your fines and charges</a></li>
16     </ul>
17
18     <div class="container-fluid">
19         <div class="row-fluid">
20             <div class="span2">
21                 <div id="navigation">
22                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
23                 </div>
24             </div>
25             <div class="span10">
26                 <div id="useraccount" class="maincontent">
27                     <h3>Fines and charges</h3>
28
29                     [% IF ( ACCOUNT_LINES ) %]
30                         <table class="table table-bordered table-striped">
31                             <thead>
32                                 <tr>
33                                     <th>Date</th>
34                                     <th>Description</th>
35                                     <th>Fine amount</th>
36                                     <th>Amount outstanding</th>
37                                 </tr>
38                             </thead>
39
40                             <tfoot>
41                             <tr>
42                                 <th class="sum" colspan="3">Total due</th>
43                                 <td class="sum">[% total %]</td>
44                             </tr>
45                             </tfoot>
46
47                             <tbody>
48                                 [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %]
49                                     [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
50                                         <td>[% ACCOUNT_LINE.date | $KohaDates %]</td>
51                                         <td>
52                                             [% SWITCH ACCOUNT_LINE.accounttype %]
53                                             [% CASE 'Pay' %]Payment, thanks
54                                             [% CASE 'Pay00' %]Payment, thanks (cash via SIP2)
55                                             [% CASE 'Pay01' %]Payment, thanks (VISA via SIP2)
56                                             [% CASE 'Pay02' %]Payment, thanks (credit card via SIP2)
57                                             [% CASE 'N' %]New card
58                                             [% CASE 'F' %]Fine
59                                             [% CASE 'A' %]Account management fee
60                                             [% CASE 'M' %]Sundry
61                                             [% CASE 'L' %]Lost item
62                                             [% CASE 'W' %]Writeoff
63                                             [% CASE 'FU' %]Accruing fine
64                                             [% CASE 'Rent' %]Rental fee
65                                             [% CASE 'FOR' %]Forgiven
66                                             [% CASE 'LR' %]Lost item fee refund
67                                             [% CASE 'PAY' %]Payment
68                                             [% CASE 'WO' %]Writeoff
69                                             [% CASE 'C' %]Credit
70                                             [% CASE 'CR' %]Credit
71                                             [% CASE %][% ACCOUNT_LINE.accounttype %]
72                                           [%- END -%]
73                                           [%- IF ACCOUNT_LINE.description %], [% ACCOUNT_LINE.description %][% END %]
74                                           [% IF ACCOUNT_LINE.title %]([% ACCOUNT_LINE.title %])[% END %]
75                                         </td>
76                                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
77                                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
78                                     </tr>
79                                 [% END %]
80                             </tbody>
81
82                         </table>
83                     [% ELSE %]
84                         <h4>You have no fines or charges</h4>
85                     [% END %]
86                 </div> <!-- / #useraccount -->
87             </div> <!-- / .span10 -->
88         </div> <!-- / .row-fluid -->
89     </div> <!-- / .container-fluid -->
90 </div> <!-- / .main -->
91
92 [% INCLUDE 'opac-bottom.inc' %]
93 [% BLOCK jsinclude %][% END %]