View | Details | Raw Unified | Return to bug 12258
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-4 / +29 lines)
Lines 1-6 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
2
<title>Koha &rsaquo; Patrons &rsaquo; Account for [% INCLUDE 'patron-title.inc' %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
5
<script type="text/javascript" src="/intranet-tmpl/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6
[% INCLUDE 'datatables-strings.inc' %]
7
<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
8
<script type="text/javascript" id="js">$(document).ready(function() {
9
 $(document).ready(function() {
10
    var txtActivefilter = _('Filter paid transactions');
11
    var txtInactivefilter = _('Show all transactions');
12
    var table_account_fines = $("#table_account_fines").dataTable($.extend(true, {}, dataTablesDefaults, {
13
        "sPaginationType": "four_button",
14
        "iDisplayLength" : 25
15
    }));
16
    $('<button id="filter_transacs">'+txtActivefilter+'</button>').appendTo($("#table_account_fines_filter"));
17
    $('#filter_transacs').click(function() {
18
        if ($(this).hasClass('filtered')) {
19
            var filteredValue = '';
20
            $('#filter_transacs').text(txtActivefilter);
21
        } else { //Not filtered. Let's do it!
22
            var filteredValue = '^((?!0.00).*)$'; //Filter not matching 0.00 http://stackoverflow.com/a/406408
23
            $('#filter_transacs').text(txtInactivefilter);
24
        }
25
        table_account_fines.fnFilter(filteredValue, 4, true, false);
26
        $(this).toggleClass('filtered');
27
    });
28
 });
29
}); </script>
4
</head>
30
</head>
5
<body id="pat_borraccount" class="pat">
31
<body id="pat_borraccount" class="pat">
6
[% INCLUDE 'header.inc' %]
32
[% INCLUDE 'header.inc' %]
Lines 26-33 Link Here
26
</ul>
52
</ul>
27
<div class="tabs-container">
53
<div class="tabs-container">
28
<!-- The table with the account items -->
54
<!-- The table with the account items -->
29
<table>
55
<table id="table_account_fines">
30
  <tr>
56
    <thead>
31
  	<th>Date</th>
57
  	<th>Date</th>
32
    <th>Description of charges</th>
58
    <th>Description of charges</th>
33
    <th>Note</th>
59
    <th>Note</th>
Lines 37-43 Link Here
37
    <th>&nbsp;</th>
63
    <th>&nbsp;</th>
38
    [% END %]
64
    [% END %]
39
    <th>Print</th>
65
    <th>Print</th>
40
  </tr>
66
    </thead>
41
67
42
	<!-- FIXME: Shouldn't hardcode dollar signs, since Euro or Pound might be needed -->
68
	<!-- FIXME: Shouldn't hardcode dollar signs, since Euro or Pound might be needed -->
43
  [% FOREACH account IN accounts %]
69
  [% FOREACH account IN accounts %]
44
- 

Return to bug 12258