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 %}
- -
-
-