{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_widgets %} {% load verbose_models uca_sort from creme_core_tags %} {% block brick_extra_class %}{{block.super}} reports-instance-bricks-info-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Block') plural=_('{count} Blocks') empty=verbose_name %}{# icon='graph' #} {% endblock %} {% block brick_table_columns %} {% brick_table_column title=_('Volatile column') status='primary' %} {% brick_table_column title=_('Compatible with detail-views of') %} {% brick_table_column title=_('Error') %} {% endblock %} {% block brick_before_content %}
{% url 'creme_config__bricks' as config_url %} {% blocktranslate %}These blocks can be placed on Home & on some detail-views in the blocks configuration.{% endblocktranslate %}
{% endblock %} {% block brick_table_rows %} {% for ibci in page.object_list %} {% with fetcher=ibci.brick.fetcher %} {{fetcher.verbose_name}} {% widget_enumerator fetcher.linked_models|verbose_models|uca_sort threshold=10 empty=_('All types of entity') summary=_('{count} types of entity') %} {{fetcher.error|default:'—'}} {% endwith %} {% endfor %} {% endblock %} {% block brick_table_empty %} {% translate 'No brick for this graph' %} {% endblock %}