{# Experience flow content — step progress + inner surface #} {% from 'macros/form_field.html' import render_field %}
{# Title #}

{{ experience.title }}

{# Progress indicator (DaisyUI steps) #} {% if experience.steps | length > 1 %} {% endif %} {# Step content #}
{% if experience.page_context %} {% set ctx = experience.page_context %} {# Form step: render the form with action rewritten to experience endpoint #} {% if ctx.form %}
{% include 'fragments/form_errors.html' %}
{% if ctx.form.sections %} {# Wizard sections within a step #} {% include 'fragments/form_stepper.html' with context %} {% for section in ctx.form.sections %}

{{ section.title }}

{% for field in section.fields %} {{ render_field(field, ctx.form.initial_values) }} {% endfor %}
{% endfor %} {% else %} {% for field in ctx.form.fields %} {{ render_field(field, ctx.form.initial_values) }} {% endfor %} {% endif %} {# Form submit + navigation buttons #}
{% for tr in experience.transitions %} {% if tr.event != 'success' %} {% endif %} {% endfor %}
{# Detail/view step #} {% elif ctx.detail %} {% include 'components/detail_view.html' %} {# Transition buttons #} {% if experience.transitions %}
{% for tr in experience.transitions %}
{% endfor %}
{% endif %} {# Table/list step #} {% elif ctx.table %} {% include 'components/filterable_table.html' %} {% if experience.transitions %}
{% for tr in experience.transitions %}
{% endfor %}
{% endif %} {% else %}
This step is ready.
{% if experience.transitions %}
{% for tr in experience.transitions %}
{% endfor %}
{% endif %} {% endif %} {% else %} {# Non-surface step (process/integration) — placeholder #}
Step in progress

This step is being processed. Please wait or continue.

{% if experience.transitions %}
{% for tr in experience.transitions %}
{% endfor %}
{% endif %} {% endif %}