group order fix dancing quantity buttons
This commit is contained in:
parent
9dca57dcef
commit
c3761095e7
2 changed files with 13 additions and 9 deletions
|
@ -25,9 +25,12 @@
|
|||
.alert.alert-error#balance-alert{style: ('display:none')}
|
||||
=t 'group_orders.errors.balance_alert'
|
||||
.row-fluid
|
||||
.well.span3
|
||||
.span2
|
||||
.well
|
||||
= render 'switch_order', current_order: @order
|
||||
.well.span8
|
||||
.well
|
||||
= render 'explanations'
|
||||
.well.span9
|
||||
%h2= @order.name
|
||||
%a(href='#tab1' data-toggle="collapse")
|
||||
=t '.details'
|
||||
|
@ -82,6 +85,7 @@
|
|||
%span{id: "missing_units_#{order_article.id}"}= @ordering_data[:order_articles][order_article.id][:missing_units]
|
||||
|
||||
%td.quantity
|
||||
.outer{style: "diyplay: inline-block; float: left; width: 50px;"}
|
||||
%input{id: "q_#{order_article.id}", name: "group_order[group_order_articles_attributes][#{order_article.id}][quantity]", type: "hidden", value: @ordering_data[:order_articles][order_article.id][:quantity], 'data-min' => (@ordering_data[:order_articles][order_article.id][:quantity] if @order.boxfill?), 'data-max' => (@ordering_data[:order_articles][order_article.id][:quantity]+@ordering_data[:order_articles][order_article.id][:missing_units] if @order.boxfill?)}/
|
||||
%span.used{id: "q_used_#{order_article.id}"}= @ordering_data[:order_articles][order_article.id][:used_quantity]
|
||||
+
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
|
||||
.row-fluid
|
||||
|
||||
.well.span3
|
||||
.well.span2
|
||||
= render 'switch_order', current_order: @order
|
||||
.well.span8
|
||||
.well.span9
|
||||
%h2= t '.articles.title'
|
||||
=render 'order_details'
|
||||
|
||||
|
|
Loading…
Reference in a new issue