{% extends 'creme_core/bricks/base/tiles.html' %} {% load creme_bricks %}{% load has_perm_to inner_edition_uri from creme_core_tags %} {% block brick_extra_class %}{{block.super}} creme_core-custom-fields-brick{% if not cells %} is-empty{% endif %}{% endblock %} {% block brick_menu_actions %} {% brick_menu_reduce_action state %} {{block.super}} {% 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 %} {% endfor %} {% endblock %}