{% extends 'creme_core/bricks/base/tiles.html' %} {% load i18n creme_bricks %}{% load has_perm_to inner_edition_uri url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} creme_core-custom-brick{% endblock %} {% block brick_menu_actions %} {% brick_menu_reduce_action state %} {{block.super}}
{% has_perm_to admin 'creme_core' as config_perm %} {% brick_menu_action id='edit' url='creme_config__edit_custom_brick'|url:config_item.id icon='config' label=_('Configure the fields') enabled=config_perm %} {% endblock %} {% block brick_header_title %} {% brick_header_title title=config_item.name icon='info' %} {% endblock %} {% block brick_header_actions %} {% if cells %} {% has_perm_to change object as edit_perm %}{% inner_edition_uri instance=object cells=cells as edition_uri %} {% brick_header_action id='edit' url=edition_uri enabled=edit_perm %} {% endif %} {% endblock %} {% block brick_content %} {% for cell in cells %} {% brick_tile_for_cell cell object user %} {% empty %} {% translate 'It seems that all fields are hidden. Ask your administrator to fix the configuration.' %} {% endfor %} {% endblock %}