{% macro displayDocumentsList(drop, dropzone, width, mode, documentListText ) %}
{% if documentListText is not null %}
{{ documentListText }}
{% endif %} {% if drop.documents|length <= 0 %} {% else %} {% for index, document in drop.documents %} {% if mode == 'complete' %} {% endif %} {% endfor %} {% endif %}
{{ 'No document associated'|trans({},'icap_dropzone') }}
{{ 'Document n°%count%'|trans({'%count%': index + 1}, 'icap_dropzone') }} {{ (document.type~'_type')|trans({}, 'icap_dropzone') }} {% if document.url is not null %} {{ document.url | length > 40 ? document.url | slice(0, 40) ~ '...' :document.url }} {% else %} {{ document.resourceNode.name }} {% endif %} {{ 'Delete'|trans({}, 'icap_dropzone') }}
{% endmacro %}