Replace 'own' js table sorting by stupidtable plugin

This commit is contained in:
Julius 2013-07-16 22:01:56 +02:00
parent 4fafdcb7ad
commit 7fd8abf381
5 changed files with 199 additions and 82 deletions

View file

@ -1,7 +1,7 @@
- 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
%td
%span.stock_article_name= stock_change.stock_article.name
= f.association :stock_article, :as => :hidden
%td.price{:data => {:toggle => :tooltip, :title => render(:partial => 'shared/article_price_info', :locals => {:article => stock_article})}}= number_to_currency stock_article.price