Free order_article resource from finance namespace; also unlock for role_orders
This commit is contained in:
parent
9ed906f425
commit
baa5f16cfc
18 changed files with 40 additions and 35 deletions
9
app/views/order_articles/_new.html.haml
Normal file
9
app/views/order_articles/_new.html.haml
Normal 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue