diff --git a/app/views/spree/admin/orders/bulk_management.html.haml b/app/views/spree/admin/orders/bulk_management.html.haml index 7360d22c26..8bdf358ce9 100644 --- a/app/views/spree/admin/orders/bulk_management.html.haml +++ b/app/views/spree/admin/orders/bulk_management.html.haml @@ -35,7 +35,8 @@ %td.date {{ line_item.order.completed_at }} %td.producer {{ line_item.supplier.name }} %td.variant {{ line_item.variant_unit_text }} - %td.quantity {{ line_item.quantity }} + %td.quantity + %input{ :type => 'number', :name => 'quantity', 'ng-model' => "line_item.quantity" } %td.max {{ line_item.max }} %td.actions %a{ 'ng-click' => "deleteLineItem(line_item)", :class => "delete-line-item icon-trash no-text" } \ No newline at end of file diff --git a/spec/features/admin/bulk_order_management_spec.rb b/spec/features/admin/bulk_order_management_spec.rb index 645fa4d438..19345c584c 100644 --- a/spec/features/admin/bulk_order_management_spec.rb +++ b/spec/features/admin/bulk_order_management_spec.rb @@ -69,10 +69,10 @@ feature %q{ page.should have_selector "td.variant", text: li2.product.name, :visible => true end - it "displays a column for quantity" do + it "displays a field for quantity" do page.should have_selector "th.quantity", text: "QUANTITY", :visible => true - page.should have_selector "td.quantity", text: li1.quantity.to_s, :visible => true - page.should have_selector "td.quantity", text: li2.quantity.to_s, :visible => true + page.should have_field "quantity", with: li1.quantity.to_s, :visible => true + page.should have_field "quantity", with: li2.quantity.to_s, :visible => true end it "displays a column for max quantity" do