V{{ step.serviceRE.version }} - Réf : {{ step.reference }} - {{ step.id }}

{{ step.label }} {% if step.actionAdmitted is same as("multiple") %}
Question à choix multiple possible {% endif %}

{% if step.helpLabel is not null %}
Info {{ step.helpLabel }}
{% endif %}
{% if step.actionAdmitted == "unique" %} {% for action in step.actionREs|sort((a, b) => a.displayOrder <=> b.displayOrder) %}
{% set isChecked = actionResponse and actionResponse.actionRE.shortValue is defined and action.shortValue is defined and actionResponse.actionRE.shortValue == action.shortValue %}
{% if action.hasAdditionalInfo %}
{% if action.additionalLabel01 %}
{% endif %} {% if action.additionalLabel02 %}
{% endif %} {% if action.additionalLabel03 %}
{% endif %}
{% endif %} {% endfor %} {% elseif step.actionAdmitted == "text" %} {% set actionIds = [] %} {% for action in step.actionREs|sort((a, b) => a.displayOrder <=> b.displayOrder) %} {% set actionIds = actionIds|merge([action.id]) %} {% endfor %} {% for action in step.actionREs|sort((a, b) => a.displayOrder <=> b.displayOrder) %}
{% set oldResponseFound = null %} {% if actionResponses is not empty and action.shortValue is defined %} {% set oldResponseFound = actionResponses[action.shortValue|trim] ?? null %} {% endif %}
{% endfor %} {% elseif step.actionAdmitted == "multiple" %} {% for action in step.actionREs|sort((a, b) => a.displayOrder <=> b.displayOrder) %}
{% set isChecked = false %} {% set responseObj = null %} {% if actionResponses is not empty and action.shortValue is defined %} {% set responseObj = actionResponses[action.shortValue|trim] ?? null %} {% set isChecked = responseObj is not null %} {% endif %}
{% if action.hasAdditionalInfo %}
{% if action.additionalLabel01 %}
{% endif %} {% if action.additionalLabel02 %}
{% endif %} {% if action.additionalLabel03 %}
{% endif %}
{% endif %} {% endfor %} {% endif %}
{% if step.faqQuestion and not is_granted('ROLE_DEMO') %} {% endif %} {% if step.filepathImg %}
Illustration de l'étape
{% endif %}