tab/app/views/transactions/index.html.haml
2015-09-08 17:46:07 +02:00

19 lines
390 B
Plaintext

%table#transactions.display{data: { source: transactions_path }}
%thead
%tr
%th id
%th debtor
%th creditor
%th amount
%tbody
:javascript
$(document).ready(function() {
$('#transactions').DataTable({
'processing': true,
'serverSide': true,
'ajax': $('#transactions').data('source'),
'pagingType': 'full_numbers'
});
});