Lines 1-23
Link Here
|
1 |
[% USE Koha %] |
1 |
[% USE Koha %] |
2 |
[% USE KohaDates %] |
2 |
[% USE KohaDates %] |
|
|
3 |
[% USE ColumnsSettings %] |
3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
<title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title> |
5 |
<title>Koha › Patrons › Account for [% INCLUDE 'patron-title.inc' %]</title> |
5 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
7 |
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" /> |
7 |
[% INCLUDE 'datatables.inc' %] |
8 |
[% INCLUDE 'datatables.inc' %] |
|
|
9 |
[% INCLUDE 'columns_settings.inc' %] |
8 |
<script type="text/javascript"> |
10 |
<script type="text/javascript"> |
9 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
10 |
var txtActivefilter = _("Filter paid transactions"); |
12 |
var txtActivefilter = _("Filter paid transactions"); |
11 |
var txtInactivefilter = _("Show all transactions"); |
13 |
var txtInactivefilter = _("Show all transactions"); |
12 |
var table_account_fines = $("#table_account_fines").dataTable($.extend(true, {}, dataTablesDefaults, { |
14 |
var columns_settings = [% ColumnsSettings.GetColumns('members', 'fines', 'account-fines', 'json') %]; |
|
|
15 |
var table_account_fines = KohaTable("#table_account_fines", { |
13 |
"sPaginationType": "four_button", |
16 |
"sPaginationType": "four_button", |
14 |
'aaSorting': [[0, 'desc']], |
17 |
'aaSorting': [[0, 'desc']], |
15 |
"sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>', |
18 |
"sDom": 'C<"top pager"ilpfB><"#filter_c">tr<"bottom pager"ip>', |
16 |
"aoColumnDefs": [ |
19 |
"aoColumnDefs": [ |
17 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] }, |
20 |
{ "sType": "title-string", "aTargets" : [ "title-string" ] }, |
18 |
{ "bSortable": false, "bSearchable": false, "aTargets": [-1] } |
21 |
{ "bSortable": false, "bSearchable": false, "aTargets": [-1] } |
19 |
] |
22 |
] |
20 |
})); |
23 |
}, columns_settings); |
21 |
$("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>'); |
24 |
$("#filter_c").html('<p><a href="#" id="filter_transacs"><i class="fa fa-filter"></i> '+txtActivefilter+'</a>'); |
22 |
$('#filter_transacs').click(function(e) { |
25 |
$('#filter_transacs').click(function(e) { |
23 |
e.preventDefault(); |
26 |
e.preventDefault(); |
24 |
- |
|
|