tab/app/views/transactions/index.html.haml

19 lines
388 B
Plaintext
Raw Normal View History

2015-09-08 15:30:13 +00:00
%table#transactions.display{data: { source: transactions_path }}
2015-09-08 14:19:48 +00:00
%thead
%tr
%th id
%th debtor
%th creditor
%th amount
%tbody
2015-09-08 15:30:13 +00:00
2015-09-08 14:19:48 +00:00
:javascript
$(document).ready(function() {
2015-09-08 15:30:13 +00:00
$('#transactions').DataTable({
processing: true,
serverSide: true,
ajaxSource: $('#transactions').data('source'),
pagingType: 'full_numbers'
});
2015-09-08 14:19:48 +00:00
});