{% use '@CraueFormFlow/FormFlow/stepList_blocks.html.twig' %}
{%- if flow.getStepLabels() is not empty -%}
<div class="craue_formflow_steplist">
{% for stepLabel in flow.getStepLabels() %}
<div{{ block('craue_flow_stepList_class') }}>
<p class="label">
{%- if craue_isStepLinkable(flow, loop.index) -%}
<a href="{{ path(app.request.attributes.get('_route'), app.request.query.all
| merge(app.request.attributes.get('_route_params'))
| craue_addDynamicStepNavigationParameters(flow, loop.index)) }}">
{{- block('craue_flow_stepLabel') -}}
</a>
{%- else -%}
{{ block('craue_flow_stepLabel') }}
{%- endif -%}
</p>
<div class="icon">
{% include 'icons/devisSteps/step' ~ loop.index ~ '.svg' %}
</div>
</div>
{% endfor %}
</div>
{%- endif -%}