foodsoft/app/views/order_articles/_new.html.haml

10 lines
400 B
Text
Raw Permalink Normal View History

= simple_form_for [@order, @order_article], remote: true do |form|
.modal-header
= close_button :modal
%h3= t '.title'
.modal-body
2014-02-24 11:37:06 +01:00
= form.association :article, collection: @order.supplier_articles, label_method: lambda {|a| article_label_with_unit(a)}
.modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
= form.submit class: 'btn btn-primary'