foodsoft/app/views/finance/ordergroups/_ordergroups.html.haml

20 lines
769 B
Text
Raw Normal View History

- if Ordergroup.count > 20
= items_per_page
= pagination_links_remote @ordergroups
%table.table.table-striped
%thead
%tr
2013-02-11 04:15:40 +01:00
%th= sort_link_helper t('.name'), "name", :per_page => @per_page
%th Kontakt
2013-02-11 04:15:40 +01:00
%th.numeric= sort_link_helper t('.account_balance'), "account_balance", :per_page => @per_page
%th
%tbody
- for ordergroup in @ordergroups
%tr
%td= ordergroup.name
%td= ordergroup.contact
%td.numeric= number_to_currency(ordergroup.account_balance)
%td
2013-02-11 04:15:40 +01:00
= link_to t('.new_transaction'), new_finance_ordergroup_transaction_path(ordergroup), class: 'btn btn-mini'
= link_to t('.account_statement'), finance_ordergroup_transactions_path(ordergroup), class: 'btn btn-mini'