Added buttons to in/decrease group order article results.
This commit is contained in:
parent
8fbce954e3
commit
6da9190b03
3 changed files with 26 additions and 1 deletions
|
|
@ -14,8 +14,10 @@
|
|||
%td
|
||||
%td{:style=>"width:50%"}
|
||||
= group_order_article.group_order.ordergroup.name
|
||||
%td{:id => "group_order_article_#{group_order_article.id}_quantity"}
|
||||
%td{:id => "group_order_article_#{group_order_article.id}_quantity", :style => "white-space:nowrap"}
|
||||
= group_order_article.result
|
||||
= button_to_remote( "+", :url => {:action => "update_group_order_article_result", :id => group_order_article, :modifier => '+'}, :html => {:style => "float:left"}, :success => "Element.hide('loader');", :before => "Element.show('loader');")
|
||||
= button_to_remote( "-", :url => {:action => "update_group_order_article_result", :id => group_order_article, :modifier => '-'}, :success => "Element.hide('loader');", :before => "Element.show('loader');")
|
||||
%td.currency
|
||||
= number_to_currency(group_order_article.order_article.price.fc_price * group_order_article.result, :unit => "")
|
||||
%td.actions{:style=>"width:1em"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue