{{ 'Established on'|trans({}, 'icap_dropzone') }} | {{ 'Made by'|trans({},'icap_dropzone') }} | {{ 'Last correction'|trans({}, 'icap_dropzone') }} | {{ 'Grade'|trans({}, 'icap_dropzone') }} | {% if AwaitingMode is defined and AwaitingMode == true %}{{ 'Corr.'|trans({}, 'icap_dropzone') }} | {% endif %}{{ 'tools'|trans({},'icap_dropzone') }} | {% for drop in pager.currentPageResults %}
---|---|---|---|---|---|
{{ 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' %} | {% if AwaitingMode is defined and AwaitingMode == true %}{% include 'IcapDropzoneBundle:Drop:dropsNbCorrections.html.twig' %} | {% endif %}
{% 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') }}
|