Allow to create stock_article as copy of article in delivery form

This commit is contained in:
Julius 2013-06-18 10:48:19 +02:00
parent cc5574f8b5
commit cc1a839246
6 changed files with 41 additions and 7 deletions

View file

@ -1,5 +1,5 @@
- url = ( stock_article.new_record? ) ? ( add_stock_article_supplier_deliveries_path(@supplier) ) : ( update_stock_article_supplier_deliveries_path(@supplier) )
= simple_form_for stock_article, url: url, remote: true, validate: true do |f|
= simple_form_for stock_article, url: url, remote: true do |f|
= f.hidden_field :supplier_id
- unless stock_article.new_record?
= f.hidden_field :id