Opening variants by default

This commit is contained in:
Will Marshall
2014-03-12 15:23:35 +11:00
parent c08f739d4a
commit 35bd1257d9
2 changed files with 7 additions and 0 deletions

View File

@@ -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"}

View File

@@ -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),