{# Macro to render a form field or static value based on field state #} {% macro field_or_static(form, fieldName, label, staticValue, bookingDto, participantIndex, options = {}) %} {% if form[fieldName] is defined %} {# Field is in form structure - render normally as form input #} {{ form_row(form[fieldName], options) }} {% elseif is_static_text(fieldName, bookingDto, participantIndex) %} {# Field excluded from form - render as static text in fieldset/table style #}