{% 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 %} {{ 'exercise' | trans }} : {{ entity.title }} {% endblock %} {% block section_content %}

{{ 'exercise'|trans }} : {{ entity.title }}

{% if isDesktop() %} {{ 'back' | trans }} {% else %} {{ 'back' | trans }} {% endif %}
{% if entity.useDateEnd != 0 %} {% endif %} {% if is_granted('ADMINISTRATE', _resource) %} {#---not operational---#} {# #} {% endif %}
{{ 'title' | trans }} {{ entity.title }}
{{ 'description' | trans }} {% if entity.description is not empty %} {{ entity.description|raw }} {% else %} - {% endif %}
{{ 'start date' | trans }} {{ entity.startdate|date('d/m/Y \\- H\\hi\\ms\\s') }}
{{ 'use date of end' | trans }} {% if entity.useDateEnd == 0 %} {% else %} {% endif %}
{{ 'end date' | trans }} {{ entity.enddate|date('d/m/Y \\- H\\hi\\ms\\s') }}
{{ 'random order of questions' | trans }} {% if entity.shuffle == 0 %} {% else %} {% endif %}
{{ 'number of questions to draw' | trans }} {% if entity.nbQuestion != 0 %} {{ entity.nbQuestion }} {% else %} {{ 'all_question'|trans }} {% endif %}
{{ 'Exercise.keepSameQuestion' | trans }} {% if entity.keepSameQuestion == 0 %} {% else %} {% endif %}
{{ 'creationDate' | trans }} {{ entity.dateCreate|date('d/m/Y \\- H\\hi\\ms\\s') }}
{{ 'duration' | trans }} {% if entity.duration != 0 %} {{ entity.duration }} {% else %} {{ 'noOne'|trans }} {% endif %}
{{ 'print paper' | trans }} {% if entity.doprint == 0 %} {% else %} {% endif %}
{{ 'maximum number of tries' | trans }} {% if entity.maxAttempts != 0 %} {{ entity.maxAttempts }} {% else %} {{ 'infiny'|trans }} {% endif %}
{{ 'availability of correction' | trans }} {% if(entity.correctionMode == 1) %} {{ 'at the end of assessment' | trans }} {% elseif (entity.correctionMode == 2) %} {{ 'after_the_last_attempt' | trans }} {% elseif (entity.correctionMode == 3) %} {{ 'from' | trans }} : {{ entity.dateCorrection|date('d/m/Y \\- H\\hi\\ms\\s') }} {% elseif (entity.correctionMode == 4) %} {{ 'never' | trans }} {% endif %}
{{ 'availability of score' | trans }} {% if(entity.markMode == 1) %} {{ 'at the same time that the correction' | trans }} {% else %} {{ 'at the end of assessment' | trans }} {% endif %}
{{ 'test exit' | trans }} {% if entity.dispButtonInterrupt == 0 %} {% else %} {% endif %}
{{ 'lock attempt' | trans }} {% if entity.lockAttempt == 0 %} {% else %} {% endif %}
{% if is_granted('ADMINISTRATE', _resource) %} {% endif %}
{% endblock %} {% block javascripts %} {{ parent() }} {% if published == false %} {% else %} {% endif %} {% if nbPapers == 0 and published == true %} {% else %} {% endif %} {% endblock %}