{% extends 'creme_core/bricks/base/hat-card.html' %} {% load i18n creme_bricks creme_listview creme_widgets persons_tags %} {% load has_perm_to url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} persons-contact-card-brick{% endblock %} {% block card_intro_content %} {% include 'persons/bricks/frags/card-last-activity.html' %} {% endblock %} {% block card_title %} {{object|persons_pretty_contact}} {% if not object.is_deleted and not object.sandbox %}{% has_perm_to change object as edition_perm %} {% brick_card_action url='persons__edit_contact_names'|url:object.id enabled=edition_perm %} {% endif %} {% endblock %} {% block card_indicators %} {# TODO: factorise with "organisation-hat-card.html" #} {% if is_customer %}