{% extends 'layout.html.twig' %} {# Local form theme override for consistent fieldset rendering #} {% use 'forms.html.twig' %} {% block form_row %} {%- if form.vars.expanded is defined and form.vars.expanded -%} {# Expanded forms get fieldset wrapper #}
{%- else -%} {{- parent() -}} {%- endif -%} {% endblock %} {% import _self as macros %} {# Macro to render a field or placeholder with consistent fieldset structure #} {% macro service_field(participant, fieldName, label, options = {}) %} {% if participant[fieldName] is defined %} {{ form_row(participant[fieldName], options) }} {% else %} {% endif %} {% endmacro %} {# Specialized macro for checkbox fields (like rental insurance) that need manual fieldset wrapping #} {% macro checkbox_field(participant, fieldName, label, options = {}) %} {% if participant[fieldName] is defined %} {% else %} {% endif %} {% endmacro %} {% block content %} {% include '_partials/_flashes.html.twig' %}