Add transport costs to Order
This commit is contained in:
parent
8cb70d819e
commit
4c567fece1
16 changed files with 141 additions and 6 deletions
11
app/views/finance/balancing/_edit_transport.html.haml
Normal file
11
app/views/finance/balancing/_edit_transport.html.haml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
= simple_form_for @order, url: update_transport_finance_order_path(@order), method: :put do |f|
|
||||
.modal-header
|
||||
= close_button :modal
|
||||
%h3= t('.title')
|
||||
.modal-body
|
||||
= f.input :transport
|
||||
= f.input :transport_distribution, as: :radio_buttons, collection: Order.transport_distributions,
|
||||
include_blank: false, label_method: ->(k){ t("activerecord.attributes.order.transport_distributions.#{k.first}") }
|
||||
.modal-footer
|
||||
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|
||||
= f.submit t('ui.save'), class: 'btn btn-primary'
|
||||
Loading…
Add table
Add a link
Reference in a new issue