{% extends "IcapDropzoneBundle::layout.html.twig" %} {% block resourceBreadcrumb %}
  • {{ dropzone.resourceNode.name }}
  • {% endblock %} {% block dropzone_content %}

    {{ dropzone.resourceNode.name|capitalize }}

    {{ macros.flashBox() }} {% if dropzone.isNotStarted %}

    {{ 'Evaluation not started'|trans({}, 'icap_dropzone') }} {% if not dropzone.manualPlanning %} - {{ 'Start %date%'|trans({'%date%': dropzone.startAllowDrop|date('formatDatetime'|trans({}, 'icap_dropzone')) },'icap_dropzone') }} {% endif %}

    {% endif %} {% if dropzone.isAllowDrop %}

    {{ 'Deposit phase'|trans({}, 'icap_dropzone') }} {% if not dropzone.manualPlanning %} - {{ 'From %startDate% to %endDate%'|trans({'%startDate%': dropzone.startAllowDrop|date('formatDatetime'|trans({}, 'icap_dropzone')), '%endDate%': dropzone.endAllowDrop|date('formatDatetime'|trans({}, 'icap_dropzone'))}, 'icap_dropzone') }} {% endif %}

    {% endif %} {% if dropzone.isPeerReview %}

    {{ 'Peer review phase'|trans({}, 'icap_dropzone') }} {% if not dropzone.manualPlanning %} - {{ 'From %startDate% to %endDate%'|trans({'%startDate%': dropzone.startReview|date('formatDatetime'|trans({}, 'icap_dropzone')), '%endDate%': dropzone.endReview|date('formatDatetime'|trans({}, 'icap_dropzone'))}, 'icap_dropzone') }} {% endif %}

    {% endif %} {% if dropzone.isFinished %}

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

    {% endif %} {% if (dropzone.peerReview) and (not (PeerReviewEndCase)) %} {% set expectedCorrections = dropzone.expectedTotalCorrection - nbCorrections %} {% else %} {% set expectedCorrections = 0 %} {% endif %} {% if dropzone.isPeerReview and expectedCorrections > 0 %} {% if drop is not null and drop.finished == true %} {% if not dropzone.manualPlanning %}
    {% set minutesRemainingBeforeEndReview = (dropzone.timeRemainingBeforeEndReview/60) %} {% set hoursRemainingBeforeEndReview = (minutesRemainingBeforeEndReview/60) %} {% set daysRemainingBeforeEndReview = (hoursRemainingBeforeEndReview/24) %} {% if daysRemainingBeforeEndReview >= 1 %} {{ 'There are only nb days before the end of the peer review'|transchoice(daysRemainingBeforeEndReview|number_format, {}, 'icap_dropzone') }} {% elseif hoursRemainingBeforeEndReview >= 1 %} {{ 'There are only nb hours before the end of the peer review'|transchoice(hoursRemainingBeforeEndReview|number_format, {}, 'icap_dropzone') }} {% else %} {{ 'There are only nb minutes before the end of the peer review'|transchoice(minutesRemainingBeforeEndReview|number_format, {}, 'icap_dropzone') }} {% endif %}
    {% endif %} {% endif %} {% endif %} {% if dropzone.isAllowDrop %} {% if drop is null or drop.finished == false %}
    {% if not dropzone.manualPlanning %} {% set minutesRemainingBeforeEndAllowDrop = (dropzone.timeRemainingBeforeEndAllowDrop/60) %} {% set hoursRemainingBeforeEndAllowDrop = (minutesRemainingBeforeEndAllowDrop/60) %} {% set daysRemainingBeforeEndAllowDrop = (hoursRemainingBeforeEndAllowDrop/24) %} {% if daysRemainingBeforeEndAllowDrop >= 1 %} {{ 'There are only nb days to get your copy'|transchoice(daysRemainingBeforeEndAllowDrop|number_format, {}, 'icap_dropzone') }} {% elseif hoursRemainingBeforeEndAllowDrop >= 1 %} {{ 'There are only nb hours to get your copy'|transchoice(hoursRemainingBeforeEndAllowDrop|number_format, {}, 'icap_dropzone') }} {% else %} {{ 'There are only nb minutes to get your copy'|transchoice(minutesRemainingBeforeEndAllowDrop|number_format, {}, 'icap_dropzone') }} {% endif %} {% else %} {% if drop is not null and drop.finished == false %} {{ 'You have an incomplete copy in progress'|trans({}, 'icap_dropzone') }} {% else %} {{ 'You have not yet made a copy'|trans({}, 'icap_dropzone') }} {% endif %} {% endif %}
    {% endif %} {% endif %} {% if dropzone.timeRemainingBeforeStartReview > 0 and drop is not null and drop.finished == true %}
    {% set minutesRemainingBeforeStartReview = (dropzone.timeRemainingBeforeStartReview/60) %} {% set hoursRemainingBeforeStartReview = (minutesRemainingBeforeStartReview/60) %} {% set daysRemainingBeforeStartReview = (hoursRemainingBeforeStartReview/24) %} {% if daysRemainingBeforeStartReview >= 1 %} {{ 'There are only nb days before the beginning of the peer review'|transchoice(daysRemainingBeforeStartReview|number_format, {}, 'icap_dropzone') }} {% elseif hoursRemainingBeforeStartReview >= 1 %} {{ 'There are only nb hours before the beginning of the peer review'|transchoice(hoursRemainingBeforeStartReview|number_format, {}, 'icap_dropzone') }} {% else %} {{ 'There are only nb minutes before the beginning of the peear review'|transchoice(minutesRemainingBeforeStartReview|number_format, {}, 'icap_dropzone') }} {% endif %} ( {{ 'Peer review phase'|trans({}, 'icap_dropzone') }} - {{ 'From %startDate% to %endDate%'|trans({'%startDate%': dropzone.startReview|date('formatDatetime'|trans({}, 'icap_dropzone')), '%endDate%': dropzone.endReview|date('formatDatetime'|trans({}, 'icap_dropzone'))}, 'icap_dropzone') }} )
    {% endif %} {% if not dropzone.isAllowDrop and ((drop is null or drop.finished == false) and (dropzone.isPeerReview or dropzone.isFinished)) %}
    {{ 'You have not made ​​a copy. It is too late to take part in this evaluation.'|trans({}, 'icap_dropzone') }}
    {% endif %} {% include 'IcapDropzoneBundle:Drop:dropStatus.html.twig' %} {% if dropzone.instruction is not null and not dropzone.isNotStarted %}

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

    {{ dropzone.instruction|raw }}

    {% endif %} {% if drop is not null and drop.finished != true %}
    {% set nbDocument = drop.documents|length %} {% set documentListText = 'nbDocumentsInThisEvaluation'|transchoice(nbDocument, {}, 'icap_dropzone') %} {{ dropzoneMacros.displayDocumentsList(drop, dropzone, 12, "condensed", documentListText) }} {% endif %} {% if dropzone.isAllowDrop %} {% if drop is null or drop.finished == false %}
    {% if drop is not null and drop.finished == false %} {{ 'Complete my copy'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Start evaluation'|trans({}, 'icap_dropzone') }} {% endif %}
    {% endif %} {% endif %} {% if dropzone.isPeerReview and expectedCorrections > 0 and drop is not null and drop.unlockedUser == 0 %} {% if drop is not null and drop.finished == true %}
    {{ 'nb correction remains'|transchoice(expectedCorrections, {}, 'icap_dropzone') }}
    {% if hasUnfinishedCorrection == true %}
    {{ 'You have already begun a correction.'|trans({}, 'icap_dropzone') }}
    {% elseif hasCopyToCorrect == false %}
    {{ 'Unfortunately there is no copy to correct for the moment. Please try again later'|trans({}, 'icap_dropzone') }}
    {% endif %}
    {{ 'See my copy'|trans({},'icap_dropzone') }} {% if hasCopyToCorrect == true and hasUnfinishedCorrection == false %} {{ 'Correct a copy'|trans({}, 'icap_dropzone') }} {% endif %} {% if hasUnfinishedCorrection == true %} {{ 'Complete my correction'|trans({}, 'icap_dropzone') }} {% endif %}

    {% endif %} {% endif %} {% if (drop is not null and drop.finished == true and expectedCorrections <= 0) or (drop is not null and drop.unlockedUser == 1) %}
    {% if drop.countFinishedCorrections >= dropzone.expectedTotalCorrection or drop.unlockedDrop %} {% if drop.calculatedGrade >= dropzone.minimumScoreToPass %}
    {% if dropzone.displayNotationMessageToLearners %}
    {{ dropzone.successMessage|raw }}
    {% endif %} {% if dropzone.displayNotationToLearners %}
    Note : {% include 'IcapDropzoneBundle:Drop:dropsTotalGrade.html.twig' %}
    {% endif %}
    {% else %}
    {% if dropzone.displayNotationMessageToLearners %}
    {{ dropzone.failMessage|raw }}
    {% endif %} {% if dropzone.displayNotationToLearners %}
    Note : {% include 'IcapDropzoneBundle:Drop:dropsTotalGrade.html.twig' %}
    {% endif %}
    {% endif %} {% else %}
    {% if dropzone.peerReview %} {% if hasCopyToCorrect %} {{ 'Finished! Patience your copy is being corrected.'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Finished! You have realized the nb corrections expected. Patience your copy is being corrected.'|transchoice(dropzone.expectedTotalCorrection, {}, 'icap_dropzone') }} {% endif %} {% else %} {{ 'Finished! Patience your copy is being corrected.'|trans({}, 'icap_dropzone') }} {% endif %}

    {% endif %}
    {% endif %}
    {% endblock %} {% block javascripts %} {{ parent() }} {% endblock %}