{% extends 'IcapDropzoneBundle:Correction:correct.html.twig' %} {% form_theme form 'IcapDropzoneBundle::form_theme_correct_criteria.html.twig' %} {% block dropzone_correct_content %}

{{ 'Evaluation criteria'|trans({}, 'icap_dropzone') }}

{% if state is defined and state =='preview' %} {{ 'Note assigned depends on the following criteria'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Note that you will assign depends on the following criteria'|trans({}, 'icap_dropzone') }} {% endif %}

{% if dropzone.hasCriteria() %}

{% for criterion in pager.currentPageResults %} {% set criterionNumber = (((pager.currentPage-1) * pager.maxPerPage) + loop.index) %}

#{{ criterionNumber }}

{{ form_row(form[criterion.id]) }}
Note
{% set criterionGrade = 0 %} {% for value in form[criterion.id].vars.value %} {% if value == true %} {% set criterionGrade = loop.index-1 %} {% endif %} {% endfor %} {{ criterionGrade }}/{{ dropzone.totalCriteriaColumn-1 }}

{% endfor %} {{ form_rest(form) }} {% if edit == true %}
{% if admin == true %} {% if pager.currentPage == 1 %} {{ 'Cancel'|trans({}, 'icap_dropzone') }} {% else %} {% set previousPage = pager.currentPage-1 %} {{ 'Previous'|trans({}, 'icap_dropzone') }} {% endif %} {% else %} {% if pager.currentPage == 1 %} {{ 'Cancel'|trans({}, 'icap_dropzone') }} {% else %} {% set previousPage = pager.currentPage-1 %} {{ 'Previous'|trans({}, 'icap_dropzone') }} {% endif %} {% endif %}
{% else %}
{% if pager.currentPage == 1 %} {% if state is defined and state == 'preview' %} {{ 'Back to corrections'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Cancel'|trans({}, 'icap_dropzone') }} {% endif %} {% else %} {% set previousPage = pager.currentPage-1 %} {{ 'Previous'|trans({}, 'icap_dropzone') }} {% endif %} {% set nextPage = pager.currentPage+1 %} {% if pager.currentPage == pager.nbPages and not dropzone.allowCommentInCorrection %} {# nothing #} {% elseif pager.currentPage == pager.nbPages and dropzone.allowCommentInCorrection %} {{ 'Next'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Next'|trans({}, 'icap_dropzone') }} {% endif %}
{% endif %}
{{ pager.currentPage }} / {% if edit == false and not dropzone.allowCommentInCorrection %}{{ pager.nbPages}}{% else %}{{ pager.nbPages+1 }}{% endif %}
{% else %}
L'évaluation ne possède aucun critère pour corriger les copies. La correction est impossible.
{% endif %}
{% endblock %} {% block stylesheets %} {{ parent() }} {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}