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

19 lines
388 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,
ajaxSource: $('#transactions').data('source'),
pagingType: 'full_numbers'
});
});