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