2014-01-23 16:17:16 +01:00
|
|
|
= simple_form_for @group_order_article, remote: true do |form|
|
2012-07-27 18:03:46 +02:00
|
|
|
= form.hidden_field :order_article_id
|
2012-11-10 16:44:05 +01:00
|
|
|
.modal-header
|
2015-04-10 18:58:51 +02:00
|
|
|
= close_button :modal
|
2013-02-11 04:07:53 +01:00
|
|
|
%h3= t('.amount_change_for', article: @order_article.article.name)
|
2012-11-10 16:44:05 +01:00
|
|
|
.modal-body
|
2015-04-17 18:27:50 +02:00
|
|
|
= form.input :ordergroup_id, as: :select, collection: Ordergroup.undeleted.map { |g| [g.name, g.id] }
|
2014-01-23 16:17:16 +01:00
|
|
|
= form.input :result, hint: I18n.t('group_order_articles.form.result_hint', unit: @order_article.article.unit) # Why do we need the full prefix?
|
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-04-04 02:49:52 +02:00
|
|
|
= form.submit t('ui.save'), class: 'btn btn-primary'
|