group order make order details collapse

This commit is contained in:
Philipp Rothmann 2023-02-20 22:32:07 +01:00
parent 2530535244
commit a847d86121

View file

@ -23,37 +23,38 @@
- title t('.title'), false - title t('.title'), false
.row-fluid .row-fluid
.well.pull-left .well.span9
%h2= @order.name %h2= @order.name
%dl.dl-horizontal %a(href='#tab1' data-toggle="collapse")
- unless @order.note.blank? Show Details
%dt= heading_helper Order, :note #tab1.collapse
%dd= @order.note %dl.dl-horizontal
%dt= heading_helper Order, :created_by - unless @order.note.blank?
%dd= show_user_link(@order.created_by) %dt= heading_helper Order, :note
%dt= heading_helper Order, :ends %dd= @order.note
%dd= format_time(@order.ends) %dt= heading_helper Order, :created_by
%dt= heading_helper Order, :pickup %dd= show_user_link(@order.created_by)
%dd= format_date(@order.pickup) %dt= heading_helper Order, :ends
- unless @order.stockit? or @order.supplier.min_order_quantity.blank? %dd= format_time(@order.ends)
%dt= heading_helper Supplier, :min_order_quantity, short: true %dt= heading_helper Order, :pickup
%dd= @order.supplier.min_order_quantity %dd= format_date(@order.pickup)
%dt= t '.sum_amount' - unless @order.stockit? or @order.supplier.min_order_quantity.blank?
%dd= number_to_currency @order.sum %dt= heading_helper Supplier, :min_order_quantity, short: true
- unless @group_order.new_record? %dd= @order.supplier.min_order_quantity
%dt= heading_helper GroupOrder, :updated_by %dt= t '.sum_amount'
%dd %dd= number_to_currency @order.sum
= show_user(@group_order.updated_by) - unless @group_order.new_record?
(#{format_time(@group_order.updated_on)}) %dt= heading_helper GroupOrder, :updated_by
%dt= heading_helper Ordergroup, :account_balance %dd
%dd= number_to_currency(@ordering_data[:account_balance]) = show_user(@group_order.updated_by)
- unless FoodsoftConfig[:charge_members_manually] (#{format_time(@group_order.updated_on)})
%dt= heading_helper Ordergroup, :available_funds %dt= heading_helper Ordergroup, :account_balance
%dd= number_to_currency(@ordering_data[:available_funds]) %dd= number_to_currency(@ordering_data[:account_balance])
- unless FoodsoftConfig[:charge_members_manually]
.well.pull-right %dt= heading_helper Ordergroup, :available_funds
%dd= number_to_currency(@ordering_data[:available_funds])
.well.span3
= render 'switch_order', current_order: @order = render 'switch_order', current_order: @order
.row-fluid .row-fluid
.well.clear .well.clear
.form-search .form-search