{% for link in documents %}
{% if is_contributor and link.id in forms %}
{% include "documents/identity_card.html" with object=link.document detach_objects=True%}
{% else %}
{% include "documents/identity_card.html" with object=link.document %}
{% endif %}
{% empty %}
{% trans "No attached documents." %}
{% endfor %}