mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
22 lines
958 B
Plaintext
22 lines
958 B
Plaintext
.variants.row
|
||
.small-6.medium-4.large-4.columns.variant-name
|
||
.inline {{ ::variant.name_to_display }}
|
||
.variant-unit {{ ::variant.unit_to_display }}
|
||
.bulk-buy.inline{"ng-if" => "::variant.product.group_buy"}
|
||
%i.ofn-i_056-bulk><
|
||
%em><
|
||
\ {{::'bulk' | t}}
|
||
.small-3.medium-3.large-3.columns.variant-price
|
||
-# Now in a template in app/assets/javascripts/templates !
|
||
%price-breakdown{"price-breakdown" => "_", variant: "variant",
|
||
"price-breakdown-append-to-body" => "true",
|
||
"price-breakdown-placement" => "bottom",
|
||
"price-breakdown-animation" => true}
|
||
{{ variant.price_with_fees | localizeCurrency }}
|
||
.medium-1.large-1.columns.total-price
|
||
%span{"ng-class" => "{filled: variant.line_item.total_price}"}
|
||
{{ variant.line_item.total_price | localizeCurrency }}
|
||
|
||
%ng-include{src: "'partials/shop_variant_no_group_buy.html'"}
|
||
%ng-include{src: "'partials/shop_variant_with_group_buy.html'"}
|