From a1dfb6a25739b1163ce1fc5c2ecc1476291eba56 Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Fri, 7 Nov 2025 16:08:08 +0300 Subject: [PATCH] =?UTF-8?q?refactor:=20=D0=9F=D0=B5=D1=80=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BD=20=D0=BC=D0=B0=D0=BA=D0=B5?= =?UTF-8?q?=D1=82=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D1=8B=20?= =?UTF-8?q?=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0=20=D0=B7=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=20-=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0?= =?UTF-8?q?=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=D0=B0=20=D0=B2?= =?UTF-8?q?=20=D0=B1=D0=BE=D0=BA=D0=BE=D0=B2=D1=83=D1=8E=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BD=D0=B5=D0=BB=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Изменена структура страницы /orders/: - Создана двухколоночная компоновка (фильтры слева, таблица справа) - Кнопка "Создать заказ" перенесена из верхней части под фильтры в левую панель - Фильтры преобразованы в вертикальный макет для лучшей организации 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../orders/templates/orders/order_list.html | 203 ++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 myproject/orders/templates/orders/order_list.html diff --git a/myproject/orders/templates/orders/order_list.html b/myproject/orders/templates/orders/order_list.html new file mode 100644 index 0000000..78fff84 --- /dev/null +++ b/myproject/orders/templates/orders/order_list.html @@ -0,0 +1,203 @@ +{% extends 'base.html' %} + +{% block title %}Заказы{% endblock %} + +{% block content %} +
+
+
+

Заказы

+
+
+ +
+ +
+ +
+
+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+ + + + Создать заказ + +
+ + +
+ + +
+
+ {% if page_obj %} +
+ + + + + + + + + + + + + + + + {% for order in page_obj %} + + + + + + + + + + + + {% endfor %} + +
НомерКлиентДата доставкиТипСтатусСуммаОплатаСозданДействия
+ + {{ order.order_number }} + + {{ order.customer.name }} + {% if order.delivery_date %} + {{ order.delivery_date|date:"d.m.Y" }} + {% if order.delivery_time_start %} +
{{ order.delivery_time_window }} + {% endif %} + {% else %} + Не указано + {% endif %} +
+ {% if order.is_delivery %} + Доставка + {% else %} + Самовывоз + {% endif %} + + {% if order.status == 'new' %} + Новый + {% elif order.status == 'confirmed' %} + Подтвержден + {% elif order.status == 'in_assembly' %} + В сборке + {% elif order.status == 'in_delivery' %} + В доставке + {% elif order.status == 'delivered' %} + Доставлен + {% elif order.status == 'cancelled' %} + Отменен + {% endif %} + {{ order.total_amount }} руб. + {% if order.payment_status == 'paid' %} + Оплачен + {% elif order.payment_status == 'partial' %} + Частично + {% else %} + Не оплачен + {% endif %} + {{ order.created_at|date:"d.m.Y H:i" }} + + + + + + +
+
+ + + {% if page_obj.has_other_pages %} + + {% endif %} + + {% else %} +
+ Заказы не найдены. + Создать первый заказ +
+ {% endif %} +
+
+
+
+
+{% endblock %}