snapshot: preserve builder section-rules layout refinement

This commit is contained in:
Md Bayazid Bostame
2026-03-27 21:18:03 +01:00
parent 61e3fae18d
commit 855eb8e02f
3 changed files with 31 additions and 33 deletions

View File

@@ -197,20 +197,8 @@
</div>
<form method="post" action="/admin-tools/form-builder/?form_type={{ form_type }}&option_category={{ selected_option_category }}">
{% csrf_token %}
<input type="hidden" name="section_rules_section" value="{{ active_section_rules_section }}" />
<nav class="structure-section-nav" aria-label="{% trans 'Abschnittsregeln' %}">
{% for section in section_rule_items %}
<a class="structure-section-pill{% if active_section_rules_section == section.key %} is-active{% endif %}" href="/admin-tools/form-builder/?form_type={{ form_type }}&option_category={{ selected_option_category }}&module=section-rules&section_rules_section={{ section.key }}">
<span class="structure-section-pill-copy">
<strong>{{ section.title }}</strong>
<span>{% blocktrans trimmed with count=section.field_count %}{{ count }} Feld/Felder{% endblocktrans %}</span>
</span>
</a>
{% endfor %}
</nav>
<div class="section-rule-grid" id="section-rule-grid">
{% for section in section_rule_items %}
{% if active_section_rules_section == section.key %}
<article
class="section-rule-card{% if section.locked %} is-locked{% endif %}"
data-section-key="{{ section.key }}"
@@ -226,7 +214,7 @@
</button>
</div>
<div class="section-rule-copy">
<strong>{{ section.title }}</strong>
<strong>{{ section.display_title }}</strong>
<span>{% blocktrans trimmed with count=section.field_count %}{{ count }} Feld/Felder in diesem Abschnitt.{% endblocktrans %}</span>
</div>
<div class="section-rule-toggle">
@@ -245,7 +233,6 @@
</span>
</div>
</article>
{% endif %}
{% endfor %}
</div>
<div class="options-actions options-actions-sticky">