{% extends "IcapDropzoneBundle::layout.html.twig" %} {% block resourceBreadcrumb %} {% if admin == true %}
  • {{ dropzone.resourceNode.name }}
  • {{ 'List of copies'|trans({}, 'icap_dropzone') }}
  • {{ 'Retail copy of %firstName% %lastName%'|trans({'%firstName%': correction.drop.user.firstName, '%lastName%': correction.drop.user.lastName}, 'icap_dropzone') }}
  • {{ 'Correction by %firstName% %lastName%'|trans({'%firstName%': correction.user.firstName, '%lastName%': correction.user.lastName}, 'icap_dropzone') }}
  • {% else %}
  • {{ dropzone.resourceNode.name }}
  • {{ 'Details of your copy'|trans({}, 'icap_dropzone') }}
  • {{ 'Correction'|trans({}, 'icap_dropzone') }}
  • {% endif %} {% endblock %} {% block dropzone_content %}
    {% if admin %}

    {{ 'Correction by %firstName% %lastName%'|trans({'%firstName%': correction.user.firstName, '%lastName%': correction.user.lastName}, 'icap_dropzone') }}

    {{ macros.flashBox() }}
    {% if backUserId is defined and backUserId != -1 %} {# back from correction By user ( admin tool ) #} {{ 'Return to corrections'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Return to corrections'|trans({}, 'icap_dropzone') }} {% endif %}

    {% if dropzone.instruction != null %} {% include 'IcapDropzoneBundle:Dropzone:recallInstruction.html.twig' %}
    {% endif %} {% if dropzone.correctionInstruction|default and dropzone.correctionInstruction != '' and dropzone.correctionInstruction != '

    ' %} {% include 'IcapDropzoneBundle:Correction:correctionInstructions.html.twig' %}
    {% endif %} {% if correction.reporter %}
    {{ 'This correction has reported abuse'|trans({}, 'icap_dropzone') }} {{ 'Remove report'|trans({}, 'icap_dropzone') }}
    {% endif %} {% set documentListText = 'Documents'|trans({}, 'icap_dropzone') %} {{ dropzoneMacros.displayDocumentsList(correction.drop, dropzone, 6, "condensed", documentListText) }}
    {{ 'Learner'|trans({}, 'icap_dropzone') }}
    {{ correction.drop.user.firstName }} {{ correction.drop.user.lastName }}

    {{ 'Corrector'|trans({}, 'icap_dropzone') }}
    {{ correction.user.firstName }} {{ correction.user.lastName }}
    {{ 'Grade attribuated'|trans({}, 'icap_dropzone') }}
    {% if correction.totalGrade != null %}{{ correction.totalGrade|number_format(2) }}{% else %}--{% endif %} /20
    {% else %} {# NO ADMIN #}
    {% if state is defined and state =='preview' %}

    {{ 'Correction of your copy'|trans({}, 'icap_dropzone') }}

    {% else %}

    {{ 'Correction'|trans({}, 'icap_dropzone') }}

    {% endif %}
    {{ macros.flashBox() }} {# DROP STATUS BAR #} {% include 'IcapDropzoneBundle:Drop:dropStatus.html.twig' %} {% if dropzone.instruction != null %} {% include 'IcapDropzoneBundle:Dropzone:recallInstruction.html.twig' %} {% endif %} {% if dropzone.correctionInstruction|default and dropzone.correctionInstruction != '' and dropzone.correctionInstruction != '

    ' %} {% include 'IcapDropzoneBundle:Correction:correctionInstructions.html.twig' %}
    {% endif %} {% if correction is not null %}

    {{ 'Relevant documents'|trans({}, 'icap_dropzone') }}
    {% if correction.dropzone.isPeerReview() and correction.dropzone.hasCriteria() and ((state is defined and state != 'preview') or (state is not defined )) %} {% if correction.reporter == false %} {{ 'Report'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Already reported'|trans({}, 'icap_dropzone') }} {% endif %} {% endif %}

    {% if state is defined and state == 'preview' %} {{ 'Here is the list of the corrected documents'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Here is the list of documents which you must correct'|trans({}, 'icap_dropzone') }} {% endif %}

    {% if correction.drop.documents|length > 0 %} {% set documentListText = 'Documents'|trans({}, 'icap_dropzone') %} {{ dropzoneMacros.displayDocumentsList(correction.drop, dropzone, 6, "condensed", documentListText) }} {% else %}

    {{ 'No document associated'|trans({}, 'icap_dropzone') }}

    {% endif %} {% endif %} {% endif %} {% if state is defined and state == 'preview' and dropzone.getAllowCorrectionDeny %}
    {% if correction.correctionDenied %} {{ 'Correction denied'|trans({},'icap_dropzone') }} {% else %} {{ 'Deny correction'|trans({},'icap_dropzone') }} {% endif %}
    {% endif %} {% if correction.reporter %}

    {{ 'Reason of reporting'|trans({}, 'icap_dropzone') }}

    {{ correction.reportComment|raw }}
    {% if state == 'preview' %} {% if correction.correctionDenied == false %} {# bouton d'activation du flag #} {{ 'Back to corrections'|trans({}, 'icap_dropzone') }} {# {{ 'Deny correction'|trans({}, 'icap_dropzone') }} #} {% else %} {# bouton désactivation du flag #} {{ 'Back to corrections'|trans({}, 'icap_dropzone') }} {% endif %} {% endif %} {% else %} {% block dropzone_correct_content %} {% endblock %} {% endif %}
    {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}