mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
Display quantity in field for BOM
This commit is contained in:
@@ -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" }
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user