From 6c207e945151ae29ad6851e698220b9fe03afb0d Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Tue, 11 Nov 2025 11:37:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B5=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82?= =?UTF-8?q?=D1=83=D1=80=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D1=8B=20=D0=B4?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D0=BA=D0=B8:=20=D1=81=D0=BE?= =?UTF-8?q?=D0=B7=D0=B4=D0=B0=D0=BD=D0=B0=20=D1=81=D0=B5=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=9F=D0=BE=D0=BB=D1=83=D1=87=D0=B0=D1=82=D0=B5=D0=BB?= =?UTF-8?q?=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Удален выбор режима адреса (История/Новый/Пусто) - Поля адреса теперь показаны сразу под кнопками доставки - Создана новая секция "Получатель" под полями адреса с бордюром сверху - Перемещен чекбокс "Покупатель является получателем" в секцию Получатель - Поля получателя (имя и телефон) теперь в той же секции - Удалены CSS стили для скрытого/видимого режимов адреса - Удалена функция initAddressModeToggle() - Упрощена UX: доставка → адрес → получатель 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../orders/templates/orders/order_form.html | 402 ++++++------------ 1 file changed, 123 insertions(+), 279 deletions(-) diff --git a/myproject/orders/templates/orders/order_form.html b/myproject/orders/templates/orders/order_form.html index abebd77..6f2240f 100644 --- a/myproject/orders/templates/orders/order_form.html +++ b/myproject/orders/templates/orders/order_form.html @@ -16,23 +16,6 @@ pointer-events: none; } - /* Явное управление видимостью режимов адреса */ - #address-history-mode { - display: none !important; - } - - #address-new-mode { - display: none !important; - } - - #address-history-mode.visible { - display: block !important; - } - - #address-new-mode.visible { - display: block !important; - } - /* Стили для поиска клиента */ .customer-option { padding: 5px 0; @@ -225,183 +208,153 @@
- -
- {{ form.customer_is_recipient }} - -
- - - - - +
-
-
- -
- {% for choice in form.address_mode %} -
- {{ choice.tag }} - -
- {% endfor %} +
+
+ + {{ form.address_street }} + {% if form.address_street.errors %} +
{{ form.address_street.errors }}
+ {% endif %} +
+
+
+
+ + {{ form.address_building_number }} + {% if form.address_building_number.errors %} +
{{ form.address_building_number.errors }}
+ {% endif %} +
+
+
+
+ + {{ form.address_apartment_number }} + {% if form.address_apartment_number.errors %} +
{{ form.address_apartment_number.errors }}
+ {% endif %}
- {% if form.address_mode.errors %} -
{{ form.address_mode.errors }}
- {% endif %}
- -
-
-