{% extends 'creme_core/bricks/base/table.html' %} {% load i18n creme_bricks creme_perms creme_widgets %} {% load is_none url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} brick-reorderable reports-fields-brick{% endblock %} {% block brick_script %} {% endblock %} {% block brick_header_title %} {% brick_header_title title=_('Columns of the report') icon='graph' %} {% endblock %} {% block brick_header_actions %} {% brick_header_action id='edit' url='reports__edit_fields'|url:object.id label=_('Edit the columns') enabled=user|has_perm_to_change:object %} {% endblock %} {% block brick_table_columns %} {% if columns %} {% brick_table_column title='' %} {% brick_table_column title=_('Column') status='primary' %} {% brick_table_column title=_('Displayed in the report') %} {% brick_table_column title=_('Type') %} {% brick_table_column title=_('Action') status='action' %} {% if expand %} {% brick_table_column title=_('Expand?') status='action nowrap' %} {% endif %} {% else %}