2013-02-11 03:57:33 +01:00
|
|
|
- title t('.title', name: @ordergroup.name)
|
2012-11-10 16:44:05 +01:00
|
|
|
|
2012-11-12 13:13:01 +01:00
|
|
|
- content_for :actionbar do
|
2013-02-11 03:57:33 +01:00
|
|
|
= link_to t('.new_transaction'), new_finance_ordergroup_transaction_path(@ordergroup), class: 'btn btn-primary'
|
2012-11-12 13:13:01 +01:00
|
|
|
|
2012-11-10 16:44:05 +01:00
|
|
|
- content_for :sidebar do
|
|
|
|
.well.well-small
|
2013-02-11 03:57:33 +01:00
|
|
|
%strong= t('.balance', balance: number_to_currency(@ordergroup.account_balance))
|
2012-11-10 16:44:05 +01:00
|
|
|
%br/
|
2013-02-11 03:57:33 +01:00
|
|
|
%small= t('.last_updated_at', when: distance_of_time_in_words(Time.now, @ordergroup.account_updated))
|
2012-11-10 16:44:05 +01:00
|
|
|
|
2014-05-06 19:02:01 +02:00
|
|
|
= render 'transactions_search', url: finance_ordergroup_transactions_path(@ordergroup)
|
2012-11-10 16:44:05 +01:00
|
|
|
|
2014-07-01 11:14:11 +02:00
|
|
|
#transactions= render 'transactions', with_csv: true
|