Merge branch 'bootstrap-opac'
[koha.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 '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>[% ACCOUNT_LINE.description %]
52                                         [% IF ( ACCOUNT_LINE.title ) %][% ACCOUNT_LINE.title |html %][% END %]</td>
53                                         [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td>
54                                         [% IF ( ACCOUNT_LINE.amountoutstandingcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amountoutstanding %]</td>
55                                     </tr>
56                                 [% END %]
57                             </tbody>
58
59                         </table>
60                     [% ELSE %]
61                         <h4>You have no fines or charges</h4>
62                     [% END %]
63                 </div> <!-- / #useraccount -->
64             </div> <!-- / .span10 -->
65         </div> <!-- / .row-fluid -->
66     </div> <!-- / .container-fluid -->
67 </div> <!-- / .main -->
68
69 [% INCLUDE 'opac-bottom.inc' %]
70 [% BLOCK jsinclude %][% END %]