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