2013-06-26 15:16:52 +02:00
|
|
|
- stock_change = f.object
|
|
|
|
- stock_article = stock_change.stock_article
|
|
|
|
%tr{:id => "stock_change_stock_article_#{stock_article.id}", :data => {:id => stock_article.id}}
|
2013-07-16 22:01:56 +02:00
|
|
|
%td
|
2013-06-26 15:16:52 +02:00
|
|
|
%span.stock_article_name= stock_change.stock_article.name
|
|
|
|
= f.association :stock_article, :as => :hidden
|
2013-07-08 22:19:27 +02:00
|
|
|
%td.price{:data => {:toggle => :tooltip, :title => render(:partial => 'shared/article_price_info', :locals => {:article => stock_article})}}= number_to_currency stock_article.price
|
|
|
|
%td.unit= stock_change.stock_article.unit
|
2013-06-26 15:16:52 +02:00
|
|
|
%td= f.input :quantity, :wrapper => :intable, :input_html => {:class => 'stock-change-quantity', :autocomplete => :off}
|
|
|
|
%td= stock_change_remove_link f
|