improve usability when ordering (PR #552)
also show box with links to currently open orders after the order has been saved
This commit is contained in:
parent
6cc02cb563
commit
4b1e9a6f53
1 changed files with 26 additions and 21 deletions
|
@ -6,27 +6,32 @@
|
||||||
|
|
||||||
- title t('.title', order: @order.name)
|
- title t('.title', order: @order.name)
|
||||||
|
|
||||||
.well
|
.row-fluid
|
||||||
// Order summary
|
.well.pull-left
|
||||||
%dl.dl-horizontal
|
// Order summary
|
||||||
%dt= heading_helper Order, :name
|
%dl.dl-horizontal
|
||||||
%dd= @order.name
|
%dt= heading_helper Order, :name
|
||||||
%dt= heading_helper Order, :note
|
%dd= @order.name
|
||||||
%dd= @order.note
|
%dt= heading_helper Order, :note
|
||||||
%dt= heading_helper Order, :ends
|
%dd= @order.note
|
||||||
%dd= format_time(@order.ends)
|
%dt= heading_helper Order, :ends
|
||||||
%dt= heading_helper Order, :pickup
|
%dd= format_time(@order.ends)
|
||||||
%dd= format_date(@order.pickup)
|
%dt= heading_helper Order, :pickup
|
||||||
%dt= heading_helper GroupOrder, :price
|
%dd= format_date(@order.pickup)
|
||||||
%dd
|
%dt= heading_helper GroupOrder, :price
|
||||||
- if @group_order
|
%dd
|
||||||
= number_to_currency(@group_order.price)
|
- if @group_order
|
||||||
- else
|
= number_to_currency(@group_order.price)
|
||||||
= t '.not_ordered'
|
- else
|
||||||
- if @order.closed?
|
= t '.not_ordered'
|
||||||
%dt= heading_helper Order, :closed_by
|
- if @order.closed?
|
||||||
%dd= show_user_link @order.updated_by
|
%dt= heading_helper Order, :closed_by
|
||||||
%p= link_to t('.comment'), "#comments"
|
%dd= show_user_link @order.updated_by
|
||||||
|
%p= link_to t('.comment'), "#comments"
|
||||||
|
|
||||||
|
.well.pull-right
|
||||||
|
= close_button :alert
|
||||||
|
= render 'switch_order', current_order: @order
|
||||||
|
|
||||||
// Article box
|
// Article box
|
||||||
%section
|
%section
|
||||||
|
|
Loading…
Reference in a new issue