{% extends "paperclip/attachment_list.html" %} {% load i18n %} {% block info_list_attachments %} {% if not user.profile.structure == object.structure and not perms.authent.can_bypass_structure %}
{% trans "You are not allowed to modify attachments on this object, this object is not from the same structure." %}
{% endif %} {% endblock info_list_attachments %} {% block permissions_add_attachment %} {% if user.profile.structure == object.structure or perms.authent.can_bypass_structure %} {{ block.super }} {% endif %} {% endblock permissions_add_attachment %} {% block inclusion_attachment_table %} {% include "common/attachment_table.html" %} {% endblock inclusion_attachment_table %}