foodsoft/app/views/finance/balancing/_edit_transport.html.haml

12 lines
564 B
Text
Raw Permalink Normal View History

2020-03-19 00:22:20 +01:00
= 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'