{% include "UJMExoBundle:Partial:correction/interaction.html.twig" %} {% for label in inter.labels %} {% endfor%}
{{ 'your_answer' | trans }} {{ 'expected_answer' | trans }} {{ 'comment' | trans }}
{% if (tabResponseIndex[label.id] is not defined and tabRightResponse[label.id] == null) or tabRightResponse[label.id]|lower is sameas(tabResponseIndex[label.id]|lower) %}
{{ label.value | raw }}
{% for proposal in inter.proposals %} {% for associatedLabel in proposal.associatedLabel %} {% if proposal.associatedLabel != null and associatedLabel.id == label.id %}
{{ proposal.value | raw }}
{% endif %} {% endfor %} {% endfor %}
{% else %}
{{ label.value | raw }}
{% set responses = explodeString('-', tabResponseIndex[label.id]) %} {% for response in responses %} {% if (response != null) %} {% set proposal = getProposal(response) %}
{{ proposal.value | raw }}
{% endif %} {% endfor %}
{% endif %}
{{ label.value | raw }}
{% for proposal in inter.proposals %} {% for associatedLabel in proposal.associatedLabel %} {% if proposal.associatedLabel != null and associatedLabel.id == label.id %}
{{ proposal.value | raw }}
{% endif %} {% endfor %} {% endfor%}
{% if label.feedback is not empty %} {{ label.feedback|raw }} {% else %} - {% endif %}
{% for proposal in inter.proposals %} {% if proposal.associatedLabel is empty %}
{{ 'no_label' | trans }}
{{ proposal.value | raw }}
{% endif %} {% endfor %}