Free order_article resource from finance namespace; also unlock for role_orders

This commit is contained in:
Julius 2013-12-31 11:41:14 +01:00 committed by wvengen
parent 9ed906f425
commit baa5f16cfc
18 changed files with 40 additions and 35 deletions

View file

@ -0,0 +1,9 @@
= simple_form_for [@order, @order_article], remote: true do |form|
.modal-header
= link_to t('ui.marks.close').html_safe, '#', class: 'close', data: {dismiss: 'modal'}
%h3= t '.title'
.modal-body
= form.input :article_id, as: :select, collection: new_order_articles_collection, :label => Article.model_name.human # Why do we need the label?
.modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
= form.submit class: 'btn btn-primary'