mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Opening variants by default
This commit is contained in:
@@ -53,3 +53,5 @@
|
||||
%tr.variant{"ng-repeat" => "variant in product.variants", "ng-show" => "product.show_variants"}
|
||||
= render partial: "shop/shop/variant"
|
||||
%input.button.right{type: :submit, value: "Add to Cart"}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
collection @products
|
||||
attributes :id, :name, :permalink, :count_on_hand, :on_demand, :group_buy
|
||||
|
||||
node :show_variants do
|
||||
true
|
||||
end
|
||||
|
||||
node do |product|
|
||||
{
|
||||
notes: strip_tags(product.notes),
|
||||
|
||||
Reference in New Issue
Block a user