{% load i18n attachments_tags thumbnail static %}

{% trans "Attached files" %}

{% if 'paperclip.read_attachment' in perms %} {% get_attachments_for object as "attachments_list" %} {% if attachments_list %} {% include "paperclip/_attachment_table.html" %} {% else %} {% trans "No file attached" %} {% endif %} {% else %} {% trans "You are not allowed to see attachments." %} {% endif %}
{% if 'paperclip.add_attachment' in perms %}
{% attachment_form object %}
{% endif %}