diff --git a/myproject/products/templates/products/product_detail.html b/myproject/products/templates/products/product_detail.html index 0581c07..14772b6 100644 --- a/myproject/products/templates/products/product_detail.html +++ b/myproject/products/templates/products/product_detail.html @@ -46,9 +46,9 @@
{% if photo.order == 0 %} -
Главное
+
⭐ Главное (позиция 1)
{% else %} - Позиция: {{ photo.order }} + Позиция: {{ photo.order|add:1 }} {% endif %} @@ -108,7 +108,7 @@
1 из {{ photos_count }} - Главное + ⭐ Главное
{% endif %} diff --git a/myproject/products/templates/products/product_form.html b/myproject/products/templates/products/product_form.html index 2233a63..3cc1f43 100644 --- a/myproject/products/templates/products/product_form.html +++ b/myproject/products/templates/products/product_form.html @@ -228,7 +228,13 @@ 🗑️ Удалить - Позиция: {{ photo.order }} + + {% if photo.order == 0 %} + Главное (позиция 1) + {% else %} + Позиция: {{ photo.order|add:1 }} + {% endif %} +