{% set layout = "ClarolineCoreBundle:Workspace:layout.html.twig" %} {% if isDesktop() %} {% set layout = "ClarolineCoreBundle:Desktop:layout.html.twig" %} {% block breadcrumb %} {{ macros.breadcrumbs([ { 'icon': 'fa fa-briefcase', 'name': 'desktop'|trans({}, 'platform'), 'href': path('claro_desktop_open') }, { 'name': 'bank of questions' | trans, 'href': path('ujm_question_index') }, { 'name': 'correction' | trans, 'href': '' } ]) }} {% endblock %} {% else %} {% block resourceBreadcrumb %}
  • {{ _resource.getResourceNode().getName() }}
  • {{ 'bank of questions' | trans }}
  • {% endblock %} {% endif %} {% extends layout %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block title %} {{ 'correction' | trans }} {% endblock %} {% block section_content %}

    {{ 'correction' | trans }}

    {% if exoID == -1 %} {{ 'back to the list' | trans }} {% else %} {{ 'back' | trans }} {% endif %}
    {% set inter = interG %} {% include "UJMExoBundle:Partial:correction/graphic.html.twig" %}
    AnswerImage {% set i = 0 %}{% set allInfo = '' %} {% for c in coords %} {% set numb = coords[i].value|split(',') %} {% set respcoo = rep[i]|split('-') %} RightAnswer{{i}} AnswerZone{{i}} {% set allInfo = coords[i].shape~';'~coords[i].color~';'~asset('bundles/ujmexo/images/graphic/')~';' ~numb[0]~';'~numb[1]~';'~respcoo[0]~';'~respcoo[1]~';'~coords[i].size~'^'~allInfo %} {% set i = i + 1 %} {% endfor %}

    {% set score = score ~ ' / ' ~ total %} {% include "UJMExoBundle:Partial:correction/overviewScore.html.twig" %}
    {% endblock %}