Skip to content

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

Add edit product link to details template

Krzysztof Wolskie93eb8f5c3cd
diff --git a/templates/product/details.html b/templates/product/details.html
index debcda025a..6c428b3972 100644
--- a/templates/product/details.html
+++ b/templates/product/details.html
@@ -47,7 +47,9 @@
{% endif %}
</p>
{% endif %}
-
+ {% if user.is_staff %}
+ <a href="{% url "dashboard:product-update" pk=product.pk %}">{% trans "Edit in dashboard" %}</a>
+ {% endif %}
<hr>
<div class="visible-xs">