{% extends "base.html" %} {% load crm_tags static erp_tags labels tz %} {% block title %}{{ page_title }}{% endblock %} {% block chat_context %} {% endblock %} {% block content %}

{{ page_title }}

New {{ entity_label|lower }} {% include "erp/_list_export.html" %} {% include "erp/_column_chooser.html" %}
{% include "erp/_saved_filters.html" %} {% if notice %}

{{ notice }}

{% endif %}
Filters{% if active_filter_count %} ({{ active_filter_count }} active){% endif %}
{% if active_chip %}{% endif %}
{% include "erp/_list_sort_inputs.html" %}
{% if show_rules and object_list %}
{% endif %} {% if show_rules and object_list %}
{% csrf_token %}
With the selected rows
{% endif %} {% include "erp/_list_live_region.html" %}
{% timezone viewer_tz %} {% include "erp/_list_caption.html" %} {% if show_rules %}{% endif %} {% include "erp/crm/_list_header.html" with first_padded=show_rules %} {% for eng in object_list %} {% if show_rules %} {% endif %} {% for col in visible_columns %} {% if col.id == "number" %} {% elif col.id == "party" %} {% elif col.id == "stage" %} {% elif col.id == "next_action" %} {% elif col.id == "expected_value" %} {% elif col.id == "weighted_value" %} {% elif col.id == "owner" %} {% elif col.id == "owner_team" %} {% elif col.id == "pipeline" %} {% elif col.id == "probability" %} {% elif col.id == "source" %} {% elif col.id == "loss_reason" %} {% elif col.id == "last_activity_at" %} {% else %} {% endif %} {% endfor %} {% empty %} {% endfor %}
Select
{{ eng.number }}
{{ eng.title }}
{% if eng.rules %}
{% for rule in eng.rules %}{{ rule }}{% endfor %}
{% endif %}
{% if eng.party %} {{ eng.party.display_name }} {% else %}No counterparty{% endif %} {% if eng.status == "open" %} {{ eng.stage.name }} {% if eng.in_stage %}
{{ eng.stage_entered_at|timesince }} in stage
{% endif %} {% elif eng.status == "won" %}Won{% if eng.stage %} at {{ eng.stage.name }}{% endif %} {% else %}Lost: {{ eng.loss_label }}{% if eng.stage %} at {{ eng.stage.name }}{% endif %} {% endif %}
{% if eng.next_task %} {{ eng.next_task.title }} {% if eng.next_action_due_at %}
{% if eng.overdue %}Overdue {{ eng.next_action_due_at|timesince }}{% else %}Due in {{ eng.next_action_due_at|timeuntil }}{% endif %}
{% else %}
No due date
{% endif %} {% elif eng.status == "open" %}None {% else %}—{% endif %}
{% if eng.expected_value is not None %}{{ eng.expected_value|money:eng.currency }}{% else %}unknown{% endif %}{% if eng.weighted_value is not None %}{{ eng.weighted_value|money:eng.currency }}{% else %}unknown{% endif %}{{ eng.owner|profile_name }}{% if eng.owner_team %}{{ eng.owner_team.name }}{% if not eng.owner_team.is_active %} (archived){% endif %}{% else %}—{% endif %}{{ eng.pipeline.name }}{% if eng.effective_probability is not None %}{{ eng.effective_probability }}%{% else %}—{% endif %}{{ eng.source_text|default:"Unknown" }}{{ eng.loss_label|default:"—" }} {% if eng.last_activity_at %}{{ eng.last_activity_at|timesince }} ago{% else %}—{% endif %} {% if eng.stale_days is not None %}
Stale · {{ eng.stale_days }} d
{% endif %}
{% list_cell eng col %}
No {{ entity_label_plural|lower }} here.
{% endtimezone %}
{% if is_paginated %} {% endif %}
{% include "erp/_list_responsive.html" %} {% endblock %} {% block javascripts %} {% include "erp/_list_a11y_script.html" %} {% endblock %}