Add tooltip for article prices

This commit is contained in:
Julius 2013-06-26 19:57:38 +02:00
parent 2ee7f716ae
commit 8a79dfd167
9 changed files with 41 additions and 15 deletions

View file

@ -4,6 +4,6 @@
%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.price-per-unit{:data => {:toggle => :tooltip, :title => render(:partial => 'shared/article_price_info', :locals => {:article => stock_article})}} #{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