{# Form rendering for styled Section — white card with optional header/footer #} {% from "partials/macros/form_item.html" import render_item with context %} {% set _section_span = _span_map[item.col_span] if item.col_span in _span_map else "" %} {% set cols_class = _cols_map[item.cols] if item.cols in _cols_map else "grid-cols-1" %}
{% if item.title %}

{{ item.title }}

{% if item.description %}

{{ item.description }}

{% endif %}
{% endif %}
{% for child in item.fields %}{{ render_item(child) }}{% endfor %}
{% if item.footer %}

{{ item.footer }}

{% endif %}