{% if AwaitingMode is defined and AwaitingMode == true %} {% endif %} {% for drop in pager.currentPageResults %} {% if AwaitingMode is defined and AwaitingMode == true %} {% endif %} {% endfor %}
{{ 'Established on'|trans({}, 'icap_dropzone') }} {{ 'Made by'|trans({},'icap_dropzone') }} {{ 'Last correction'|trans({}, 'icap_dropzone') }} {{ 'Grade'|trans({}, 'icap_dropzone') }} {{ 'Corr.'|trans({}, 'icap_dropzone') }} {{ 'tools'|trans({},'icap_dropzone') }}
{{ drop.dropDate|date('formatDatetime'|trans({}, 'icap_dropzone')) }} {% if drop.reported %} {% endif %} {% if drop.unlockedDrop %} {% endif %} {{ drop.user.firstName|capitalize }} {{ drop.user.lastName|upper }} {% include 'IcapDropzoneBundle:Drop:dropsLastCorrectionDate.html.twig' %} {% if drop.getHasDeniedCorrection %} {% endif %} {% include 'IcapDropzoneBundle:Drop:dropsTotalGrade.html.twig' %} {% include 'IcapDropzoneBundle:Drop:dropsNbCorrections.html.twig' %}
{% if AwaitingMode is defined and AwaitingMode == true %} {{ 'Add a correction'|trans({}, 'icap_dropzone') }} {# --------------- UNLOCKED BUTTON ---------------- #} {# if the dropzone is finished, show unlock buttons #} {% if dropzone.isFinished %} {% if drop.corrections|length == 0 %} {{ 'Unlock copy'|trans({}, 'icap_dropzone') }} {% else %} {% if(drop.unlockedDrop) %} {{ 'Unlocked copy'|trans({}, 'icap_dropzone') }} {% else %} {{ 'Unlock copy'|trans({}, 'icap_dropzone') }} {% endif %} {% endif %} {% endif %} {# --------------- END UNLOCKED BUTTON --------------- #} {% endif %} {{ 'Delete copy'|trans({}, 'icap_dropzone') }}