mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Displaying prices better
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
%span.light-grey{"ng-hide" => "product.group_buy"}
|
||||
N/A
|
||||
%td.price
|
||||
%small from
|
||||
%small{"ng-show" => "(product.variants.length > 0)"} from
|
||||
${{ product.price }}
|
||||
%tr{"ng-repeat" => "variant in product.variants"}
|
||||
%td{colspan: 3}
|
||||
@@ -53,7 +53,7 @@
|
||||
%span.light-grey{"ng-hide" => "product.group_buy"}
|
||||
N/A
|
||||
%td.price
|
||||
%small from ${{variant.price }}
|
||||
%small ${{variant.price }}
|
||||
%input.button.right{type: :submit, value: "Check Out"}
|
||||
-#%pre {{ data.products | json }}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ child :master => :master do
|
||||
end
|
||||
|
||||
child :variants => :variants do |variant|
|
||||
attributes :id, :is_master, :count_on_hand, :options_text, :count_on_hand, :on_demand
|
||||
attributes :id, :is_master, :price, :count_on_hand, :options_text, :count_on_hand, :on_demand
|
||||
child :images => :images do
|
||||
attributes :id, :alt
|
||||
node do |img|
|
||||
|
||||
Reference in New Issue
Block a user