Linearize and clean up delivery form
This commit is contained in:
parent
bf32e72414
commit
dd70b84ef0
16 changed files with 170 additions and 155 deletions
9
app/views/deliveries/_stock_change_fields.html.haml
Normal file
9
app/views/deliveries/_stock_change_fields.html.haml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
- stock_change = f.object
|
||||
- stock_article = stock_change.stock_article
|
||||
%tr{:id => "stock_change_stock_article_#{stock_article.id}", :data => {:id => stock_article.id}}
|
||||
%td.sort-by-name
|
||||
%span.stock_article_name= stock_change.stock_article.name
|
||||
= f.association :stock_article, :as => :hidden
|
||||
%td.price-per-unit #{number_to_currency stock_article.price}/#{stock_change.stock_article.unit}
|
||||
%td= f.input :quantity, :wrapper => :intable, :input_html => {:class => 'stock-change-quantity', :autocomplete => :off}
|
||||
%td= stock_change_remove_link f
|
||||
Loading…
Add table
Add a link
Reference in a new issue