2013-12-31 11:41:14 +01:00
|
|
|
= simple_form_for [@order, @order_article], remote: true do |form|
|
2012-11-10 16:44:05 +01:00
|
|
|
.modal-header
|
2015-04-10 18:58:51 +02:00
|
|
|
= close_button :modal
|
2013-03-08 23:35:50 +01:00
|
|
|
%h3= t '.title'
|
2012-11-10 16:44:05 +01:00
|
|
|
.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)}
|
2012-11-10 16:44:05 +01:00
|
|
|
.modal-footer
|
2013-04-12 15:45:24 +02:00
|
|
|
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
|
2013-03-08 23:35:50 +01:00
|
|
|
= form.submit class: 'btn btn-primary'
|