mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
stock entries button on product card (#1079)
This commit is contained in:
@@ -88,6 +88,8 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
|||||||
|
|
||||||
$('#productcard-product-edit-button').attr("href", U("/product/" + productDetails.product.id.toString() + '?' + 'returnto=' + encodeURIComponent(Grocy.CurrentUrlRelative)));
|
$('#productcard-product-edit-button').attr("href", U("/product/" + productDetails.product.id.toString() + '?' + 'returnto=' + encodeURIComponent(Grocy.CurrentUrlRelative)));
|
||||||
$('#productcard-product-journal-button').attr("href", U("/stockjournal?embedded&product=" + productDetails.product.id.toString()));
|
$('#productcard-product-journal-button').attr("href", U("/stockjournal?embedded&product=" + productDetails.product.id.toString()));
|
||||||
|
$('#productcard-product-stock-button').attr("href", U("/stockentries?product=" + productDetails.product.id.toString()));
|
||||||
|
$('#productcard-product-stock-button').removeClass("disabled");
|
||||||
$('#productcard-product-edit-button').removeClass("disabled");
|
$('#productcard-product-edit-button').removeClass("disabled");
|
||||||
$('#productcard-product-journal-button').removeClass("disabled");
|
$('#productcard-product-journal-button').removeClass("disabled");
|
||||||
|
|
||||||
|
@@ -20,6 +20,13 @@
|
|||||||
title="{{ $__t('Stock journal for this product') }}">
|
title="{{ $__t('Stock journal for this product') }}">
|
||||||
<i class="fas fa-file-alt"></i>
|
<i class="fas fa-file-alt"></i>
|
||||||
</a>
|
</a>
|
||||||
|
<a id="productcard-product-stock-button"
|
||||||
|
class="btn btn-sm btn-outline-info py-0 float-right disabled"
|
||||||
|
href="#"
|
||||||
|
data-toggle="tooltip"
|
||||||
|
title="{{ $__t('Stock entries for this product') }}">
|
||||||
|
<i class="fas fa-boxes"></i>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h3><span id="productcard-product-name"></span></h3>
|
<h3><span id="productcard-product-name"></span></h3>
|
||||||
|
Reference in New Issue
Block a user