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

18 lines
390 B
Text

%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'
});
});