move receive screen to orders
This commit is contained in:
parent
94b4454a1b
commit
d299fa4870
10 changed files with 75 additions and 79 deletions
23
app/views/orders/receive.html.haml
Normal file
23
app/views/orders/receive.html.haml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
- title "Receiving #{@order.name}"
|
||||
|
||||
= form_tag(receive_order_path(@order)) do
|
||||
%section#results
|
||||
= render 'edit_amounts'
|
||||
|
||||
.form-actions
|
||||
.pull-left
|
||||
Surplus to
|
||||
= label_tag :rest_to_tolerance, class: 'inline' do
|
||||
= check_box_tag :rest_to_tolerance, 1, true
|
||||
member tolerance,
|
||||
%span{style: 'color: grey'}
|
||||
and
|
||||
= label_tag :rest_to_stock, class: 'inline' do
|
||||
= check_box_tag :rest_to_stock, 1, false, disabled: true
|
||||
stock
|
||||
|
||||
.pull-right
|
||||
= submit_tag t('.submit'), class: 'btn btn-primary'
|
||||
= link_to t('ui.or_cancel'), order_path(@order)
|
||||
|
||||
%p= link_to_top
|
||||
Loading…
Add table
Add a link
Reference in a new issue