2013-02-04 00:46:22 +01:00
|
|
|
- title t('.title'), false
|
2012-11-12 09:03:23 +01:00
|
|
|
|
|
|
|
.row-fluid
|
|
|
|
.span4
|
|
|
|
%h2= @ordergroup.name
|
|
|
|
.well
|
2013-11-09 14:19:54 +01:00
|
|
|
- unless @ordergroup.description.blank?
|
|
|
|
%p= @ordergroup.description
|
2012-11-12 09:03:23 +01:00
|
|
|
%p
|
2017-10-10 18:20:54 +02:00
|
|
|
%b= heading_helper(Ordergroup, :account_balance) + ':'
|
|
|
|
= number_to_currency(@ordergroup.account_balance)
|
|
|
|
- unless FoodsoftConfig[:charge_members_manually]
|
|
|
|
%p
|
|
|
|
%b= heading_helper(Ordergroup, :available_funds) + ':'
|
|
|
|
= number_to_currency(@ordergroup.get_available_funds())
|
2017-03-04 14:15:39 +01:00
|
|
|
- if FinancialTransactionClass.has_multiple_classes
|
|
|
|
- FinancialTransactionClass.sorted.each do |c|
|
|
|
|
%p
|
|
|
|
%b= c.display + ':'
|
|
|
|
= number_to_currency(@ordergroup["sum_of_class_#{c.id}"])
|
2013-11-09 14:19:54 +01:00
|
|
|
%p
|
2013-11-23 12:05:29 +01:00
|
|
|
%b= heading_helper(Ordergroup, :user_tokens) + ':'
|
2013-11-18 11:42:49 +01:00
|
|
|
= @ordergroup.memberships.map{|m| show_user m.user}.join(', ')
|
2016-03-06 13:56:33 +01:00
|
|
|
- unless FoodsoftConfig[:disable_invite]
|
|
|
|
= link_to t('.invite'), new_invite_path(:id => @ordergroup), :remote => true, class: 'btn btn-primary'
|
2023-10-02 23:00:24 +02:00
|
|
|
- '<home_ordergroup_well_mark>'
|
2012-11-12 09:03:23 +01:00
|
|
|
.span8
|
2013-02-04 00:46:22 +01:00
|
|
|
%h2= t('.account_summary')
|
2012-11-12 09:03:23 +01:00
|
|
|
.well.well-small
|
|
|
|
= form_tag my_ordergroup_path, :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-04 00:46:22 +01:00
|
|
|
placeholder: t('.search')
|
2014-06-10 16:09:43 +02:00
|
|
|
#transactions= render "finance/financial_transactions/transactions", with_csv: false
|