From fdd14804a745c1c3b74904e07c35c818a01db0b3 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Wed, 19 Nov 2025 00:53:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D0=B0=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=82=D1=83=D1=81=D0=BE=D0=B2=20=D0=B7=D0=B0=D0=BA?= =?UTF-8?q?=D0=B0=D0=B7=D0=BE=D0=B2:=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D0=B8=20Fon?= =?UTF-8?q?t=20Awesome=20=D0=BD=D0=B0=20Bootstrap=20Icons,=20=D1=83=D0=B2?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=D1=87=D0=B5=D0=BD=D1=8B=20=D0=B1=D0=B5=D0=B9?= =?UTF-8?q?=D0=B4=D0=B6=D0=B8,=20=D0=BF=D0=BE=D0=BB=D0=BD=D1=8B=D0=B5=20?= =?UTF-8?q?=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=82=D0=B8?= =?UTF-8?q?=D0=BF=D0=BE=D0=B2=20=D0=B8=20=D0=B8=D1=82=D0=BE=D0=B3=D0=BE?= =?UTF-8?q?=D0=B2,=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8=20=D0=B4=D0=B5?= =?UTF-8?q?=D0=B9=D1=81=D1=82=D0=B2=D0=B8=D0=B9=20=D1=82=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=BA=D0=BE=20=D1=81=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D0=B0?= =?UTF-8?q?=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../orders/templates/orders/status_list.html | 314 +++++++----------- 1 file changed, 111 insertions(+), 203 deletions(-) diff --git a/myproject/orders/templates/orders/status_list.html b/myproject/orders/templates/orders/status_list.html index 9392178..8d7683e 100644 --- a/myproject/orders/templates/orders/status_list.html +++ b/myproject/orders/templates/orders/status_list.html @@ -5,225 +5,133 @@ {% block content %} - -
-
-
-

Статусы

-

{{ statuses|length }} статусов в системе

-
+
+
- - Создать - +

Статусы

+
{{ statuses|length }} статусов
+ + Создать +
{% if messages %} {% for message in messages %} - + {% endfor %} {% endif %} -
- {% for status in statuses %} -
-
-
-
-

{{ status.name }}

-
- {{ status.code }} - {% if status.is_system %} - sys - {% endif %} - {% if status.is_positive_end %} - - {% elif status.is_negative_end %} - - {% endif %} - {% if status.orders_count > 0 %} - {{ status.orders_count }} заказ{{ status.orders_count|pluralize:",а,ов" }} - {% endif %} -
-
-
-
- - Редактировать - - {% if not status.is_system and status.orders_count == 0 %} - - Удалить - - {% else %} - - {% endif %} -
-
- {% empty %} -
- -

Статусы не найдены

-
- {% endfor %} +
+ + + + + + + + + + + + + + + + {% for status in statuses %} + + + + + + + + + + + + {% empty %} + + + + {% endfor %} + +
НазваниеКодТипИтогОписаниеЗаказыДействия
{{ status.order }} + + + {{ status.name }} + {% if status.label %} + ({{ status.label }}) + {% endif %} + {{ status.code }} + {% if status.is_system %} + Системный + {% else %} + Пользовательский + {% endif %} + + {% if status.is_positive_end %} + ✓ Положительный + {% elif status.is_negative_end %} + ✗ Отрицательный + {% else %} + Промежуточный + {% endif %} + + {% if status.description %} + {{ status.description|truncatechars:60 }} + {% else %} + + {% endif %} + + {% if status.orders_count > 0 %} + {{ status.orders_count }} + {% else %} + 0 + {% endif %} + +
+ + + + {% if not status.is_system and status.orders_count == 0 %} + + + + {% else %} + + {% endif %} +
+
+ Статусы не найдены +
{% endblock %}