2013-02-09 02:01:31 +01:00
|
|
|
- title t('.title'), false
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
- content_for :sidebar do
|
|
|
|
.well.well-small
|
|
|
|
// Ordergroups Account Balance
|
2013-02-09 02:01:31 +01:00
|
|
|
%h2= t '.funds.title'
|
2012-10-15 21:19:17 +02:00
|
|
|
%table.table.table-striped
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2013-11-23 17:28:21 +01:00
|
|
|
%td= heading_helper Ordergroup, :account_balance
|
2012-10-15 21:19:17 +02:00
|
|
|
%td.numeric{:style => "width:5em"}= number_to_currency(@ordergroup.account_balance)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2013-11-23 17:28:21 +01:00
|
|
|
%td= '- ' + t('.funds.open_orders')
|
2012-10-15 21:19:17 +02:00
|
|
|
%td.numeric= number_to_currency(@ordergroup.value_of_open_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2013-11-23 17:28:21 +01:00
|
|
|
%td= '- ' + t('.funds.finished_orders')
|
2012-10-15 21:19:17 +02:00
|
|
|
%td.numeric= number_to_currency(@ordergroup.value_of_finished_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2013-11-23 17:28:21 +01:00
|
|
|
%th= heading_helper Ordergroup, :available_funds
|
2012-10-15 21:19:17 +02:00
|
|
|
%th.numeric= number_to_currency(@ordergroup.get_available_funds)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2023-02-20 18:52:13 +01:00
|
|
|
.row-fluid
|
|
|
|
.span9
|
|
|
|
= render :partial => "shared/open_orders", :locals => {:ordergroup => @ordergroup}
|
|
|
|
// finished orders
|
2020-07-12 10:26:36 +02:00
|
|
|
- unless @finished_not_closed_orders_including_group_order.empty?
|
2023-02-20 18:52:13 +01:00
|
|
|
.row-fluid
|
|
|
|
.span9
|
|
|
|
%section
|
|
|
|
%h2= t '.finished_orders.title'
|
|
|
|
= render partial: 'orders', locals: {orders: @finished_not_closed_orders_including_group_order, pagination: false}
|
|
|
|
- if @ordergroup.value_of_finished_orders > 0
|
|
|
|
%p
|
|
|
|
= t('.finished_orders.total_sum') + ':'
|
|
|
|
%b= number_to_currency(@ordergroup.value_of_finished_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
// closed orders
|
2020-07-12 10:26:36 +02:00
|
|
|
- unless @closed_orders_including_group_order.empty?
|
2023-02-20 18:52:13 +01:00
|
|
|
.row-fluid
|
|
|
|
.span9
|
|
|
|
%section
|
|
|
|
%h2= t '.closed_orders.title'
|
|
|
|
= render partial: 'orders', locals: {orders: @closed_orders_including_group_order, pagination: false}
|
|
|
|
%br/
|
|
|
|
= link_to t('.closed_orders.more'), archive_group_orders_path
|