Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add missing delete button
Marcin Gębala5e2683232b48
diff --git a/saleor/dashboard/templates/dashboard/product/product_form.html b/saleor/dashboard/templates/dashboard/product/product_form.htmlindex d5a2c47da8..28329eb215 100644--- a/saleor/dashboard/templates/dashboard/product/product_form.html+++ b/saleor/dashboard/templates/dashboard/product/product_form.html@@ -62,8 +62,11 @@</div><div class="form-group">- <button type="submit" class="btn btn-primary">Save</button>- <a href="{% url 'dashboard:products' %}" class="btn btn-link">Cancel</a>+ <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>+ {% if product %}+ <a href="{% url 'dashboard:product-delete' pk=product.pk %}" class="btn btn-danger">{% trans "Delete" %}</button>+ {% endif %}+ <a href="{% url 'dashboard:products' %}" class="btn btn-link">{% trans "Cancel" %}</a></div></form>