Fix: Restore checkbox values on page reload for recipient fields

Adds proper initialization for checkbox fields on page load:
- address_confirm_with_recipient (Уточнить адрес у получателя)
- customer_is_recipient (Покупатель является получателем)

These fields are already tracked by autosave.js and properly saved
by backend, but were not displaying saved values after page reload.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-26 06:34:44 +03:00
parent 3b4785e2ad
commit 08e8409a66

View File

@@ -463,6 +463,7 @@
<input class="form-check-input" type="checkbox" role="switch"
id="{{ form.address_confirm_with_recipient.id_for_label }}"
name="{{ form.address_confirm_with_recipient.name }}"
{% if form.address_confirm_with_recipient.value %}checked{% endif %}
style="width: 3em; height: 1.5em; cursor: pointer;">
<label class="form-check-label" for="{{ form.address_confirm_with_recipient.id_for_label }}"
style="font-size: 1.1em; font-weight: 500; cursor: pointer; padding-left: 0.5em;">
@@ -484,6 +485,7 @@
<input class="form-check-input" type="checkbox" role="switch"
id="{{ form.customer_is_recipient.id_for_label }}"
name="{{ form.customer_is_recipient.name }}"
{% if form.customer_is_recipient.value %}checked{% endif %}
style="width: 3em; height: 1.5em; cursor: pointer;">
<label class="form-check-label" for="{{ form.customer_is_recipient.id_for_label }}"
style="font-size: 1.1em; font-weight: 500; cursor: pointer; padding-left: 0.5em;">