{% 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 = '' %}{% set allInfoTab = '' %} {% for c in coords %} {% set numb = coords[i].value|split(',') %} {% set respcoo = rep[i]|split('-') %} RightAnswer{{i}}

    {{i+1}}

    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 allInfoTab = coords[i].scoreCoords~';ยง'~coords[i].feedback~'^^'~allInfoTab %} {% set i = i + 1 %} {% endfor %}

    {{ 'answer_zone' | trans }} {{ 'points' | trans }} {{ 'comment' | trans }}

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