tab/app/views/transactions/index.html.haml
2015-09-08 16:19:48 +02:00

18 lines
395 B
Text

%table#transactions.display
%thead
%tr
%th id
%th debtor
%th creditor
%th amount
%tbody
- @transactions.each do |transaction|
%tr
%td= transaction.id
%td= transaction.debtor.name
%td= transaction.creditor.name
%td= transaction.amount
:javascript
$(document).ready(function() {
$('#transactions').DataTable();
});