{% set layout = "ClarolineCoreBundle:Workspace:layout.html.twig" %} {% if isDesktop() %} {% set layout = "ClarolineCoreBundle:Desktop:layout.html.twig" %} {% endif %} {% extends layout %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block title %} {{ 'paper' | trans }} {% endblock %} {% block resourceBreadcrumb %}
  • {{ _resource.getResourceNode().getName() }}
  • {{ 'nQuestion' | trans }}{{numQ}}
  • {% endblock %} {% block section_content %}

    {{ _resource.getResourceNode().getName() }} {% if(maxAttempsAllowed > 0) %} {{ "attempt info1" | trans }} {{ maxAttempsAllowed }} {% if(maxAttempsAllowed > 1) %} {{ "attempt info2plur" | trans }} {% else %} {{ "attempt info2sing" | trans }} {% endif %} - {% endif %} {{ "attempt info3" | trans }} {{ numAttempt }}

    {#-------------------------------------------------- QCM ------------------------------------------------------------#} {% if interactionType == 'InteractionQCM' %} {% include "UJMExoBundle:Partial:interactionPaper.html.twig" %} {% for choice in interactionToDisplayed.choices %} {% set checked = "" %} {% if regexTwig('/' ~ choice.id ~ ';/', response) > 0 %} {% set checked = "checked" %} {% endif %} {% if interactionToDisplayed.typeQCM.code == 2 %} {% else %} {% endif %} {% endfor %}

    {{ choice.label|raw }}
    {% include "UJMExoBundle:Partial:hintPaper.html.twig" %} {#------------------------------------------------- Graphic ---------------------------------------------------------#} {% elseif interactionType == 'InteractionGraphic' %} {% include "UJMExoBundle:Partial:interactionPaper.html.twig" %}
    {{ "consignes" | trans }} :
    {{ "position" | trans }}
    {{ "selection" | trans }}
    {{ "raz" | trans }}
    {{ "onlyOnce" | trans }}

    {% set i = 1 %} {% for coords in listCoords %} AnswerZone{{ i }} {% set i = i + 1 %} {% endfor %}

    {% if response is empty %} {% set response = 'empty' %} {% endif %} AnswerImg

    {% include "UJMExoBundle:Partial:hintPaper.html.twig" %} {#-------------------------------------------------- OPEN -----------------------------------------------------------#} {% elseif interactionType == 'InteractionOpen' %} {% include "UJMExoBundle:Partial:interactionPaper.html.twig" %} {% include "UJMExoBundle:Partial:paper/open.html.twig" %} {% include "UJMExoBundle:Partial:hintPaper.html.twig" %} {#--------------------------------------------------- Hole ----------------------------------------------------------#} {% elseif interactionType == 'InteractionHole' %} {% include "UJMExoBundle:Partial:interactionPaper.html.twig" %}
    {{ interactionToDisplayed.htmlWithoutValue | raw }} {% if response != '' %} {% endif %}
    {% include "UJMExoBundle:Partial:hintPaper.html.twig" %} {#--------------------------------------------------- Matching ----------------------------------------------------------#} {% elseif interactionType == 'InteractionMatching' %} {% if interactionToDisplayed.typeMatching.code == 2 %} {% else %} {% endif %} {% include "UJMExoBundle:Partial:interactionPaper.html.twig" %}
    {% if interactionToDisplayed.typeMatching.code == 2 %} {% else %} {% endif %}
    {% for proposal in interactionToDisplayed.proposals %}
    • {{ proposal.value | raw }}
    {% endfor%}
    {% for label in interactionToDisplayed.labels %}
    • {{ label.value | raw }}
    {% endfor %}
    {% for proposal in interactionToDisplayed.proposals %}
    {{ proposal.value | raw }}
    {% endfor%}
    {% for label in interactionToDisplayed.labels %}
    {{ label.value | raw }}
    {% endfor %}
    {% if response != '' %} {% for key, val in response %} {% set resp = explodeString('-', val) %} {% for r in resp %} {% endfor %} {% endfor %} {% endif %} {% include "UJMExoBundle:Partial:hintPaper.html.twig" %} {% endif %}
    {#--------------------------------------------------- Pagination ----------------------------------------------------#} {% endblock %} {% block javascripts %} {{ parent() }} {% if interactionType == 'InteractionGraphic' %} {% elseif interactionType == 'InteractionMatching' %} {% if interactionToDisplayed.typeMatching.code == 2 %} {% else %} {% endif %} {% endif %} {% include "UJMExoBundle:Partial:modal/confirmFinishExercise.html.twig" %} {% endblock %}