{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_widgets %} {% load has_perm_to url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} creme_core-trash-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Deleted entity') plural=_('{count} Deleted entities') empty=_('Deleted entities') icon='delete' %} {% endblock %} {% block brick_header_actions %} {% if ENTITIES_DELETION_ALLOWED %} {% brick_header_action id='edit' url='creme_core__empty_trash'|url label=_('Empty the trash') icon='cancel' %} {% endif %} {% endblock %} {% block brick_table_columns %} {% brick_table_column_for_field ctype=objects_ctype field='modified' title=_('Deletion date') status='primary' %} {% brick_table_column title=_('Type') %} {% brick_table_column title=_('Name') %} {% brick_table_column title=_('Actions') status='action' colspan=2 %} {% endblock %} {% block brick_table_rows %} {% for entity in page.object_list %} {% has_perm_to delete entity as delete_perm %} {{entity.modified}} {% widget_icon ctype=entity.entity_type size='brick-table' class='trash-brick-modelicon' %}{{entity.entity_type}} {% widget_entity_hyperlink entity.get_real_entity user ignore_deleted=True %} {% brick_table_action id='update' url='creme_core__restore_entity'|url:entity.id label=_('Restore') icon='restore' enabled=delete_perm %} {% if ENTITIES_DELETION_ALLOWED %} {% brick_table_action id='delete' url=entity.get_delete_absolute_url label=_('Delete definitively') enabled=delete_perm %} {% endif %} {% endfor %} {% endblock %} {% block brick_table_empty %} {% translate 'The trash is empty' %} {% endblock %}