Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add edit to product form breadcrumbs

Krzysztof Białogłowicz5f4e2d17dff1
diff --git a/templates/dashboard/product/product_form.html b/templates/dashboard/product/product_form.html
index 0cfd9495ad..94c7ce26e0 100644
--- a/templates/dashboard/product/product_form.html
+++ b/templates/dashboard/product/product_form.html
@@ -44,6 +44,13 @@
{% endif %}
</span>
</li>
+ {% if product.pk %}
+ <li>
+ <span class="breadcrumbs--ellipsed-item">
+ {% trans "Edit" context "Product form breadcrumbs" %}
+ </span>
+ </li>
+ {% endif %}
</ul>
{% endblock %}
diff --git a/templates/dashboard/product/stock_form.html b/templates/dashboard/product/stock_form.html
index c140519b00..2e8a4fe050 100644
--- a/templates/dashboard/product/stock_form.html
+++ b/templates/dashboard/product/stock_form.html
@@ -48,6 +48,11 @@
{% endblocktrans %}
</span>
</li>
+ <li>
+ <span class="breadcrumbs--ellipsed-item">
+ {% trans "Edit" context "Stock form breadcrumbs" %}
+ </span>
+ </li>
{% else %}
<li>
<span class="hide-on-med-and-down breadcrumbs--ellipsed-item">
diff --git a/templates/dashboard/product/variant_form.html b/templates/dashboard/product/variant_form.html
index dde280edc1..262748e01e 100644
--- a/templates/dashboard/product/variant_form.html
+++ b/templates/dashboard/product/variant_form.html
@@ -42,6 +42,11 @@
{{ variant }}
</span>
</li>
+ <li>
+ <span class="breadcrumbs--ellipsed-item">
+ {% trans "Edit" context "Variant form breadcrumbs" %}
+ </span>
+ </li>
{% else %}
<li>
<span class="hide-on-med-and-down">