Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use base modal in product modal templates
Anna Siwik082d26b0cb4e
diff --git a/templates/dashboard/product/modal/confirm_delete.html b/templates/dashboard/product/modal/confirm_delete.htmlindex 232fe38feb..0636af1796 100644--- a/templates/dashboard/product/modal/confirm_delete.html+++ b/templates/dashboard/product/modal/confirm_delete.html@@ -1,18 +1,24 @@-{% extends "dashboard/base_modal_confirm_delete.html" %}+{% extends "dashboard/base_modal.html" %}{% load i18n %}{% load prices_i18n %}-{% block action_url %}{% url 'dashboard:product-delete' pk=product.pk %}{% endblock %}+{% block action_url %}+{% url 'dashboard:product-delete' pk=product.pk %}+{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal remove product text" %}-Remove product {{ product }}+{% blocktrans trimmed context "Modal remove product title" %}+ Remove product {{ product }}{% endblocktrans %}{% endblock %}{% block content %}{% blocktrans trimmed context "Modal remove product text" %}-Are you sure you want to remove product <strong>{{ product }}</strong>?+ Are you sure you want to remove product <strong>{{ product }}</strong>?{% endblocktrans %}{% endblock content %}++{% block primary_action %}+{% trans "Remove" context "Modal remove product primary action" %}+{% endblock %}diff --git a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.htmlindex d36ee15480..e333332521 100644--- a/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html+++ b/templates/dashboard/product/product_attribute/modal/attribute_confirm_delete.html@@ -1,4 +1,4 @@-{% extends "dashboard/base_modal_confirm_delete.html" %}+{% extends "dashboard/base_modal.html" %}{% load i18n %}@@ -7,13 +7,17 @@{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal remove attribute text" %}-Remove attribute {{ attribute }}+{% blocktrans trimmed context "Modal remove attribute title" %}+ Remove attribute {{ attribute }}{% endblocktrans %}{% endblock title %}{% block content %}{% blocktrans trimmed context "Modal remove attribute text" %}-Are you sure you want to remove attribute <strong>{{ attribute }}</strong>?+ Are you sure you want to remove attribute <strong>{{ attribute }}</strong>?{% endblocktrans %}{% endblock content %}++{% block primary_action %}+{% trans "Remove" context "Modal remove product primary action" %}+{% endblock %}diff --git a/templates/dashboard/product/product_class/modal/confirm_delete.html b/templates/dashboard/product/product_class/modal/confirm_delete.htmlindex e8106682a4..cdd6c77b46 100644--- a/templates/dashboard/product/product_class/modal/confirm_delete.html+++ b/templates/dashboard/product/product_class/modal/confirm_delete.html@@ -1,32 +1,36 @@-{% extends "dashboard/base_modal_confirm_delete.html" %}+{% extends "dashboard/base_modal.html" %}{% load i18n %}{% load prices_i18n %}{% load staticfiles %}-{% block action_url %}{% url "dashboard:product-class-delete" pk=product_class.pk %}{% endblock %}+{% block action_url %}+{% url "dashboard:product-class-delete" pk=product_class.pk %}+{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal remove product class text" %}-Remove product class {{ product_class }}+{% blocktrans trimmed context "Modal remove product class title" %}+ Remove product class {{ product_class }}{% endblocktrans %}{% endblock title %}{% block content %}-<p>- {% blocktrans trimmed context "Modal remove product class text" %}- Are you sure you want to remove product class <strong>{{ product_class }}</strong>?- {% endblocktrans %}-</p>-<p>-{% if products %}- {% blocktrans trimmed context "Modal remove product class text" with product_count=products.count %}- There are {{ product_count }} products in product class.- {% endblocktrans %}-{% else %}- {% blocktrans trimmed context "Modal remove product class text" %}- There are no products in this product class.- {% endblocktrans %}-{% endif %}-</p>+<div class="col">+ <p>+ {% blocktrans trimmed context "Modal remove product class text" %}+ Are you sure you want to remove product class <strong>{{ product_class }}</strong>?+ {% endblocktrans %}+ </p>+ <p>+ {% if products %}+ {% blocktrans trimmed context "Modal remove product class text" with product_count=products.count %}+ There are {{ product_count }} products in product class.+ {% endblocktrans %}+ {% else %}+ {% blocktrans trimmed context "Modal remove product class text" %}+ There are no products in this product class.+ {% endblocktrans %}+ {% endif %}+ </p>+</div>{% endblock %}diff --git a/templates/dashboard/product/product_image/modal/confirm_delete.html b/templates/dashboard/product/product_image/modal/confirm_delete.htmlindex b8661a765f..d3dc9ffb22 100644--- a/templates/dashboard/product/product_image/modal/confirm_delete.html+++ b/templates/dashboard/product/product_image/modal/confirm_delete.html@@ -12,8 +12,14 @@{% endblock %}{% block content %}-<div class="center-align">-<img class="responsive-img" src="{{ image.image.crop.255x255 }}" srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x" alt="">+<div class="col">+ <div class="center-align">+ <img class="responsive-img" src="{{ image.image.crop.255x255 }}" srcset="{{ image.image.crop.255x255 }} 1x, {{ image.image.crop.510x510 }} 2x" alt="">+ </div>+ <p>{% trans "Are you sure you want to remove product image?" context "Modal remove image text" %}</p></div>-<p>{% trans "Are you sure you want to remove product image?" context "Modal remove image text" %}</p>{% endblock content %}++{% block primary_action %}+{% trans "Remove" context "Modal remove product image primary action" %}+{% endblock %}diff --git a/templates/dashboard/product/product_variant/modal/confirm_delete.html b/templates/dashboard/product/product_variant/modal/confirm_delete.htmlindex 1e468dde8b..87088c6a1d 100644--- a/templates/dashboard/product/product_variant/modal/confirm_delete.html+++ b/templates/dashboard/product/product_variant/modal/confirm_delete.html@@ -1,4 +1,4 @@-{% extends "dashboard/base_modal_confirm_delete.html" %}+{% extends "dashboard/base_modal.html" %}{% load i18n %}{% load prices_i18n %}@@ -9,20 +9,26 @@{% endblock %}{% block title %}-{% blocktrans context "Dashboard confirmation modal" %}-Remove variant {{ variant }}+{% blocktrans context "Modal remove variant title" %}+ Remove variant {{ variant }}{% endblocktrans %}{% endblock %}{% block content %}-<p>-{% blocktrans context "Dashboard confirmation modal" %}-Are you sure you want to remove variant <strong>{{ variant }}</strong> of product {{ product }}?-{% endblocktrans %}-</p>-{% if is_only_variant %}-<p>-{% trans "This is the only variant of this product. If you remove it, the product will become unavailable." context "Dashboard confirmation modal" %}-</p>-{% endif %}+<div class="col">+ <p>+ {% blocktrans context "Modal remove variant text" %}+ Are you sure you want to remove variant <strong>{{ variant }}</strong> of product {{ product }}?+ {% endblocktrans %}+ </p>+ {% if is_only_variant %}+ <p>+ {% trans "This is the only variant of this product. If you remove it, the product will become unavailable." context "Modal remove variant text" %}+ </p>+ {% endif %}+</div>{% endblock content %}++{% block primary_action %}+{% trans "Remove" context "Modal remove product variant primary action" %}+{% endblock %}diff --git a/templates/dashboard/product/stock/modal/confirm_delete.html b/templates/dashboard/product/stock/modal/confirm_delete.htmlindex 6393272e6f..90be0b1912 100644--- a/templates/dashboard/product/stock/modal/confirm_delete.html+++ b/templates/dashboard/product/stock/modal/confirm_delete.html@@ -1,4 +1,4 @@-{% extends "dashboard/base_modal_confirm_delete.html" %}+{% extends "dashboard/base_modal.html" %}{% load i18n %}{% load prices_i18n %}@@ -8,13 +8,19 @@{% endblock %}{% block title %}-{% blocktrans context "Dashboard confirmation modal" %}+{% blocktrans context "Modal remove stock title" %}Remove stock {{ stock }}{% endblocktrans %}{% endblock title %}{% block content %}-{% blocktrans context "Dashboard confirmation modal" %}-Are you sure you want to remove stock <strong>{{ stock }}</strong>?-{% endblocktrans %}+<div class="col">+ {% blocktrans context "Modal remove stock text" %}+ Are you sure you want to remove stock <strong>{{ stock }}</strong>?+ {% endblocktrans %}+</div>{% endblock content %}++{% block primary_action %}+{% trans "Remove" context "Modal remove stock primary action" %}+{% endblock %}diff --git a/templates/dashboard/product/stock_location/modal/confirm_delete.html b/templates/dashboard/product/stock_location/modal/confirm_delete.htmlindex 64df338c06..eb672ba5e4 100644--- a/templates/dashboard/product/stock_location/modal/confirm_delete.html+++ b/templates/dashboard/product/stock_location/modal/confirm_delete.html@@ -1,4 +1,4 @@-{% extends "dashboard/base_modal_confirm_delete.html" %}+{% extends "dashboard/base_modal.html" %}{% load i18n %}@@ -7,26 +7,31 @@{% endblock %}{% block title %}-{% blocktrans trimmed context "Modal remove stock location text" %}+{% blocktrans trimmed context "Modal remove stock location title" %}Remove stock location {{ location }}{% endblocktrans %}{% endblock title %}{% block content %}-<p>-{% blocktrans trimmed context "Modal remove stock location text" %}- Are you sure you want to remove stock location <strong>{{ location }}</strong>?-{% endblocktrans %}-</p>-{% if stock_count %}-<p>-{% blocktrans trimmed count counter=stock_count context "Modal remove stock location text" %}- There is one stock associated with this stock location that will be removed.- {% plural %}- There are {{ counter }} stocks associated with this stock location that will be removed.-{% endblocktrans %}-</p>-{% endif %}-+<div class="col">+ <p>+ {% blocktrans trimmed context "Modal remove stock location text" %}+ Are you sure you want to remove stock location <strong>{{ location }}</strong>?+ {% endblocktrans %}+ </p>+ {% if stock_count %}+ <p>+ {% blocktrans trimmed count counter=stock_count context "Modal remove stock location text" %}+ There is one stock associated with this stock location that will be removed.+ {% plural %}+ There are {{ counter }} stocks associated with this stock location that will be removed.+ {% endblocktrans %}+ </p>+ {% endif %}+</div>{% endblock content %}+{% block primary_action %}+{% trans "Remove" context "Modal remove stock location primary action" %}+{% endblock %}+