2012-11-10 16:44:05 +01:00
|
|
|
- if Ordergroup.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @ordergroups
|
|
|
|
%table.table.table-striped
|
2011-06-09 21:35:05 +02:00
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th= sort_link_helper "Name", "name", :per_page => @per_page
|
|
|
|
%th Kontakt
|
2012-11-10 16:44:05 +01:00
|
|
|
%th.numeric= sort_link_helper "Kontostand", "account_balance", :per_page => @per_page
|
2011-06-09 21:35:05 +02:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- for ordergroup in @ordergroups
|
2012-11-10 16:44:05 +01:00
|
|
|
%tr
|
2011-06-09 21:35:05 +02:00
|
|
|
%td= ordergroup.name
|
|
|
|
%td= ordergroup.contact
|
2012-11-10 16:44:05 +01:00
|
|
|
%td.numeric= number_to_currency(ordergroup.account_balance)
|
|
|
|
%td
|
|
|
|
= link_to "Neue Transaktion", new_finance_ordergroup_transaction_path(ordergroup), class: 'btn btn-mini'
|
|
|
|
= link_to "Kontoauszug", finance_ordergroup_transactions_path(ordergroup), class: 'btn btn-mini'
|
2011-06-09 21:35:05 +02:00
|
|
|
|