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
|
|
|
.well.well-small
|
|
|
|
= form_tag finance_ordergroup_transactions_path(@ordergroup), :method => :get, :remote => true,
|
|
|
|
'data-submit-onchange' => true, class: 'form-search' do
|
|
|
|
= text_field_tag :query, params[:query], class: 'input-medium search-query',
|
2013-02-11 03:57:33 +01:00
|
|
|
placeholder: t('.search_placeholder')
|
2012-11-10 16:44:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
#transactions= render 'transactions'
|