foodsoft/app/views/ordering/index.haml

45 lines
1.4 KiB
Plaintext
Raw Normal View History

2009-01-06 11:49:19 +01:00
%h1= _('Order Overview')
// Ordergroups Account Balance
2009-01-06 11:49:19 +01:00
.left_column{:style => "width:26%"}
.box_title
%h2=h @orderGroup.name
.column_content
%table
%tr
%td= _('Account balance')
%td{:class => "currency", :style => "width:5em"}= number_to_currency(@orderGroup.account_balance)
%tr
%td= "- " + _('Current orders')
%td{:class => "currency"}= number_to_currency(@currentOrdersValue)
%tr
%td= "- " +_('Unrecorded orders')
%td{:class => "currency"}= number_to_currency(@nonbookedOrdersValue)
%tr
%th= _('Available')
%th{:class => "currency"}= number_to_currency(@orderGroup.account_balance - @currentOrdersValue - @nonbookedOrdersValue)
.right_column{:style => "width:70%"}
// Current Orders
- if @orderGroup
= render :partial => "currentOrders"
2009-01-06 11:49:19 +01:00
// finished, nonbooked Orders
- unless @finishedOrders.empty?
2009-01-06 11:49:19 +01:00
.box_title
%h2= _('unrecorded orders')
.column_content
= render :partial => "finishedOrders"
- if @nonbookedOrdersValue > 0
%p
= _('total order value')
%b= number_to_currency(@nonbookedOrdersValue)
// bookedOrders
- unless @bookedOrders.empty?
2009-01-06 11:49:19 +01:00
.box_title
%h2= _('balanced orders')
.column_content
= render :partial => "bookedOrders"
%br/
= link_to _('more...'), :action => "myOrders"