mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 05:36:15 +02:00
Grocycode: Do not show on product card
This commit is contained in:
parent
866e64acc0
commit
9e73349bfb
|
|
@ -23,10 +23,6 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||||
}
|
}
|
||||||
$('#productcard-product-spoil-rate').text((parseFloat(productDetails.spoil_rate_percent) / 100).toLocaleString(undefined, { style: "percent" }));
|
$('#productcard-product-spoil-rate').text((parseFloat(productDetails.spoil_rate_percent) / 100).toLocaleString(undefined, { style: "percent" }));
|
||||||
|
|
||||||
// grocycode
|
|
||||||
$("#productcard-product-grocycode-image").attr("src", U('/product/' + productDetails.product.id + '/grocycode'));
|
|
||||||
$("#productcard-product-grocycode-image-link").attr("href", U('/product/' + productDetails.product.id + '/grocycode?download=true'));
|
|
||||||
|
|
||||||
if (productDetails.is_aggregated_amount == 1)
|
if (productDetails.is_aggregated_amount == 1)
|
||||||
{
|
{
|
||||||
$('#productcard-product-stock-amount-aggregated').text(productDetails.stock_amount_aggregated);
|
$('#productcard-product-stock-amount-aggregated').text(productDetails.stock_amount_aggregated);
|
||||||
|
|
|
||||||
|
|
@ -55,11 +55,6 @@
|
||||||
@if (GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)<strong>{{ $__t('Average price') }}:</strong> <span id="productcard-product-average-price"></span><br>@endif
|
@if (GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING)<strong>{{ $__t('Average price') }}:</strong> <span id="productcard-product-average-price"></span><br>@endif
|
||||||
@if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)<strong>{{ $__t('Average shelf life') }}:</strong> <span id="productcard-product-average-shelf-life"></span><br>@endif
|
@if (GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)<strong>{{ $__t('Average shelf life') }}:</strong> <span id="productcard-product-average-shelf-life"></span><br>@endif
|
||||||
<strong>{{ $__t('Spoil rate') }}:</strong> <span id="productcard-product-spoil-rate"></span>
|
<strong>{{ $__t('Spoil rate') }}:</strong> <span id="productcard-product-spoil-rate"></span>
|
||||||
<p><strong>{{ $__t('Grocycode') }}:</strong><br><img id="productcard-product-grocycode-image"
|
|
||||||
data-src=""
|
|
||||||
class="lazy"><br><a href="#"
|
|
||||||
target="_blank"
|
|
||||||
id="productcard-product-grocycode-image-link">{{ $__t('Download') }}</a></p>
|
|
||||||
|
|
||||||
<p class="w-75 mt-3 mx-auto"><img id="productcard-product-picture"
|
<p class="w-75 mt-3 mx-auto"><img id="productcard-product-picture"
|
||||||
data-src=""
|
data-src=""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user