{% extends 'creme_core/bricks/base/hat-card.html' %}{# -*- mode: jinja2 -*- #} {% load i18n creme_core_tags creme_bricks creme_widgets persons_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 %}{% url 'persons__edit_contact_names' object.id as names_edition_url %} {% brick_card_action url=names_edition_url enabled=edition_perm %} {% endif %} {% endblock %} {% block card_indicators %} {% with neg_label=neglected_indicator.label %} {% if neg_label %}
{{neg_label}}
{% endif %} {% endwith %} {% endblock %} {% block card_secondary %} {% if managed_org %}
Responsable de: {% for org in managed_org %} {% widget_entity_hyperlink org user %}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% if employed_by %}
Salarié de: {% for org in employed_by %} {% widget_entity_hyperlink org user %}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% if elected_of %}
Élu(e) de: {% for org in elected_of %} {% widget_entity_hyperlink org user %}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% endblock %} {% block card_fields_title %} {% trans 'Details' context 'persons-contact' %} {% endblock %} {% block card_fields %} {% if 'phone' not in hidden_fields %}
{% trans 'Phone' %} {{object.phone|default:'—'}} {% brick_card_action_for_field instance=object field='phone' user=user %}
{% endif %} {% if 'mobile' not in hidden_fields %}
{% trans 'Mobile' %} {{object.mobile|default:'—'}} {% brick_card_action_for_field instance=object field='mobile' user=user %}
{% endif %} {% if 'email' not in hidden_fields %}
{% trans 'Email address' %} {% with email=object.email %} {% if email %} {{email}} {% else %} — {% endif %} {% brick_card_action_for_field instance=object field='email' user=user %} {% endwith %}
{% endif %} {% endblock %} {% block card_summary %} {% include 'persons/bricks/frags/card-summary-acts.html' %} {% include 'persons/bricks/frags/card-summary-opportunities.html' %} {% include 'persons/bricks/frags/card-summary-next-activity.html' %} {% endblock %} {% block card_history %} {% include 'persons/bricks/frags/contact-card-history.html' %} {% endblock %}