{% extends "base.html" %} {% load static erp_tags labels crm_tags %} {% block title %}{{ page_title }}{% endblock %} {% block chat_context %} {% endblock %} {% block content %}
{{ page_title }}
{% if perms.parties.merge_party %} Duplicates {% endif %} New {{ entity_label }} {% include "erp/_list_export.html" %} {% include "erp/_column_chooser.html" %}
{% include "erp/_saved_filters.html" %}
Filters{% if active_filter_count %} ({{ active_filter_count }} active){% endif %}
{% for filter in party_filters %}
{% endfor %} {% if show_all %}{% endif %} {% include "erp/_list_sort_inputs.html" %}
{% include "erp/_list_live_region.html" %}
{% include "erp/_list_caption.html" %} {% for col in header_columns %} {% endfor %} {% for party in object_list %} {% for col in visible_columns %} {% if col.id == "display_name" %} {% elif col.id == "roles" %} {% elif col.id == "email" %} {% elif col.id == "phone" %} {% elif col.id == "organisation" %} {% elif col.id == "owner" %} {% elif col.id == "owner_team" %} {% elif col.id == "lifecycle_stage" %} {% elif col.id == "contact_type" %} {% elif col.id == "email_consent" %} {% elif col.id == "updated_at" or col.id == "created_at" %} {% with when=party|get_field:col.path %} {% endwith %} {% elif col.id == "kind" %} {% elif col.id == "origin" %} {% else %} {% endif %} {% endfor %} {% empty %} {% endfor %}
{% if col.id == "organisation" %}{% label "parties.organisation" as col_text %}{% else %}{% firstof col.label as col_text %}{% endif %} {% if col.sortable %} {{ col_text }}{% if col.aria_sort == "ascending" %}{% elif col.aria_sort == "descending" %}{% else %}{% endif %} {% elif col.source == "definition" %}{{ col_text }} {% else %}{{ col_text }}{% endif %}
{% if party.kind == "organisation" %} {% label "parties.organisation" %}: {% else %} {% label "parties.person" %}: {% endif %} {{ party.display_name }} {% if party.merged_into_id %}Merged{% endif %} {% if party.erased_at %}Erased{% endif %} {% for name, text in party.role_badges %}{{ text }}{% endfor %} {% if party.more_roles %}+{{ party.more_roles }}{% endif %} {{ party.primary_email_normalized|default:"—" }}{{ party.phone_display|default:"—" }} {% if party.organisation %} {{ party.organisation.display_name }} {% else %}—{% endif %} {{ party.owner|profile_name:"—" }}{% if party.owner_team %}{{ party.owner_team.name }}{% if not party.owner_team.is_active %} (archived){% endif %}{% else %}—{% endif %}{% if party.lifecycle_text %}{{ party.lifecycle_text }}{% else %}unknown{% endif %}{% if party.contact_type_text %}{{ party.contact_type_text }}{% else %}not set{% endif %}{% if party.email_marketing == "granted" %}Granted{% elif party.email_marketing == "withdrawn" %}Withdrawn{% else %}Unknown{% endif %}{{ when|timesince }} ago{{ party.get_kind_display }}{{ party.get_origin_display }}{% list_cell party col %}
No {{ entity_label_plural|lower }} found.
{% if is_paginated %} {% endif %}
{% include "erp/_list_responsive.html" %} {% endblock %} {% block javascripts %} {% include "erp/_list_a11y_script.html" %} {% endblock %}