{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_widgets creme_ctype creme_cells creme_bricks %} {% block brick_extra_class %} {{block.super}} creme_core-search-brick{% if page.paginator.count == 0 %} is-empty{% endif %} {% endblock %} {% block brick_extra_attributes %} search-count="{{page.paginator.count}}" {% endblock %} {% block brick_header_title %} {% ctype_counted_instances_label objects_ctype page.paginator.count as title %} {% widget_icon ctype=objects_ctype size='brick-header' as ct_icon %} {% brick_header_title title=title icon=ct_icon %} {% endblock %} {% block brick_table_columns %} {% if cells %} {% brick_table_column title=_('See') status='action' %} {% for cell in cells %} {% brick_table_column title=cell %} {% endfor %} {% else %} {% translate 'It seems that all fields are hidden. Ask your administrator to fix the configuration.' %} {% endif %} {% endblock %} {% block brick_table_rows %} {% for entity in page.object_list %} {% if cells %} {% widget_icon name='view' size='brick-table-action' class='brick-action-icon brick-table-action-icon' %} {% endif %} {% for cell in cells %} {% cell_render cell=cell instance=entity user=user as cell_content %} {% if cell_content %}{% if entity.is_deleted %}
{{cell_content}}
{% else %}{{cell_content}}{% endif %}{% else %}{% endif %} {% endfor %} {% endfor %} {% endblock %}