diff --git a/myproject/products/templates/products/category_confirm_delete.html b/myproject/products/templates/products/category_confirm_delete.html index ce40f1a..16758e3 100644 --- a/myproject/products/templates/products/category_confirm_delete.html +++ b/myproject/products/templates/products/category_confirm_delete.html @@ -6,24 +6,29 @@
-
-
-

Подтверждение удаления

+
+
+

Подтверждение удаления в корзину

-

Вы уверены, что хотите удалить категорию "{{ category.name }}"?

+

Вы уверены, что хотите поместить категорию "{{ category.name }}" в корзину?

+ +
+ + ℹ️ Категория будет помещена в корзину. Администратор может восстановить её в любое время. +
{% if products_count > 0 %} -
- Внимание! В этой категории есть {{ products_count }} товар(ов). -
Удаление невозможно. Сначала удалите или переместите товары. +
+ ℹ️ Информация: В этой категории есть {{ products_count }} товар(ов). +
Товары автоматически переместятся в корзину при удалении категории.
{% endif %} {% if children_count > 0 %}
- Внимание! У этой категории есть {{ children_count }} подкатегорий. -
Удаление невозможно. Сначала удалите или переместите подкатегории. + ℹ️ Информация: У этой категории есть {{ children_count }} подкатегорий. +
Подкатегории автоматически переместятся в корзину при удалении категории.
{% endif %} @@ -31,11 +36,7 @@ {% csrf_token %}
Отмена - {% if products_count == 0 and children_count == 0 %} - - {% else %} - Вернуться к категории - {% endif %} +
diff --git a/myproject/products/templates/products/category_detail.html b/myproject/products/templates/products/category_detail.html index 9752b74..3e2b544 100644 --- a/myproject/products/templates/products/category_detail.html +++ b/myproject/products/templates/products/category_detail.html @@ -45,7 +45,8 @@ {% for photo in category_photos %}
- Фото категории + + Фото категории {% if photo.order == 0 %}
Главное diff --git a/myproject/products/templates/products/product_confirm_delete.html b/myproject/products/templates/products/product_confirm_delete.html index 9af5815..9672f54 100644 --- a/myproject/products/templates/products/product_confirm_delete.html +++ b/myproject/products/templates/products/product_confirm_delete.html @@ -13,7 +13,7 @@

Вы уверены, что хотите удалить товар "{{ product.name }}"?

Артикул: {{ product.sku }}

-

Внимание! Это действие нельзя будет отменить.

+

ℹ️ Товар будет помещен в корзину. Администратор может восстановить его в любое время.

{% csrf_token %} diff --git a/myproject/products/templates/products/product_detail.html b/myproject/products/templates/products/product_detail.html index 323a8c0..e4e81d5 100644 --- a/myproject/products/templates/products/product_detail.html +++ b/myproject/products/templates/products/product_detail.html @@ -29,12 +29,13 @@ {% for photo in product_photos %}
- +
+ Фото товара diff --git a/myproject/products/templates/products/product_list.html b/myproject/products/templates/products/product_list.html index 7a2bfdf..3261c98 100644 --- a/myproject/products/templates/products/product_list.html +++ b/myproject/products/templates/products/product_list.html @@ -29,7 +29,8 @@ {% if product.photos.all %} {% with photo=product.photos.first %} - {{ product.name }} + + {{ product.name }} {% endwith %} {% else %} Нет фото diff --git a/myproject/products/templates/products/productkit_confirm_delete.html b/myproject/products/templates/products/productkit_confirm_delete.html index 30298c0..72af8f0 100644 --- a/myproject/products/templates/products/productkit_confirm_delete.html +++ b/myproject/products/templates/products/productkit_confirm_delete.html @@ -6,9 +6,9 @@
-
-
-

Подтверждение удаления

+
+
+

Подтверждение удаления в корзину

Вы действительно хотите удалить комплект?

@@ -19,9 +19,9 @@ Артикул: {{ kit.sku }}
-
- - Внимание! Это действие нельзя отменить. Комплект будет удален с все его компоненты и фотографии. +
+ + ℹ️ Комплект будет помещен в корзину. Администратор может восстановить его в любое время.
diff --git a/myproject/products/templates/products/productkit_detail.html b/myproject/products/templates/products/productkit_detail.html index 089ea27..1767630 100644 --- a/myproject/products/templates/products/productkit_detail.html +++ b/myproject/products/templates/products/productkit_detail.html @@ -177,7 +177,8 @@ {% for photo in productkit_photos %}
- {{ kit.name }} + {{ kit.name }} diff --git a/myproject/products/templates/products/productkit_list.html b/myproject/products/templates/products/productkit_list.html index a8fac58..0e28798 100644 --- a/myproject/products/templates/products/productkit_list.html +++ b/myproject/products/templates/products/productkit_list.html @@ -30,7 +30,8 @@ {% if kit.photos.all %} {% with photo=kit.photos.first %} - {{ kit.name }} + + {{ kit.name }} {% endwith %} {% else %} Нет фото