{% for checkbox in field %}
{% with checkbox_id=checkbox.id_for_label %}
{# Check if the current choice is in the locked list #}
{% if checkbox.data.value|stringformat:"s" in locked_ids %}
{# Hidden input to ensure value is submitted if disabled #}
{% else %}
{% endif %}
{% endwith %}
{% empty %}
لا توجد أقسام فرعية
{% endfor %}
{# Add New Subsection Button - Triggers Inline Input #}