{% extends "base.html" %} {% load labels %} {% block title %}{{ page_title }}{% endblock %} {% block content %}

{{ page_title }}

{% label "crm.stage" %} keys never change once saved; imports map by them. Archive a {% label "crm.stage" case="lower" %} rather than delete it.

{% if can_create %} New {% label "crm.pipeline" case="lower" %}{% endif %}
{% for pipeline in pipelines %}

{{ pipeline.name }} ({{ pipeline.key }}) {% if pipeline.is_default %}Default{% endif %} {% if not pipeline.is_active %}Inactive{% endif %}

{% if can_manage %} {% endif %}

Stale after {{ pipeline.stale_after_days }} days without activity, unless a {% label "crm.stage" case="lower" %} says otherwise.

{# Scrolls in its own box on a phone (never the page): focusable and named for axe. #}
{% if can_manage %}{% endif %} {% for stage in pipeline.ordered_stages %} {% if can_manage %}{% endif %} {% empty %} {% endfor %}
Order {% label "crm.stage" %} Probability Stale after Proposes closing StateActions
{% if can_manage %}
{% csrf_token %}
{% csrf_token %}
{% else %}{{ forloop.counter }}{% endif %}
{{ stage.name }} {{ stage.key }} {% if stage.default_probability is not None %}{{ stage.default_probability }}%{% else %}—{% endif %} {{ stage.effective_stale }} d{% if stage.stale_after_days is None %} (pipeline){% endif %} {% if stage.outcome_hint %}{{ stage.get_outcome_hint_display }}{% else %}—{% endif %} {% if stage.is_active %}Active{% else %}Archived{% endif %}Edit
No {% label "crm.stage" plural=True case="lower" %}.
{% empty %}
No {% label "crm.pipeline" plural=True case="lower" %}.
{% endfor %} {% endblock %}