{% extends "controlpanel/base.html" %} {% load i18n lucide %} {% comment %} Confirm-then-delete for a plan. A real page rather than a modal (unlike every other billing action) because the whole point is naming exactly which clubs are affected, and that list can be long. See billing.services.plans for what "delete" actually does. {% endcomment %} {% block heading %}{% blocktrans with plan=plan.name %}Delete “{{ plan }}”{% endblocktrans %}{% endblock heading %} {% block actions %} {% lucide "arrow-left" size=16 %} {% trans "Back to billing" %} {% endblock actions %} {% block panel %}

{% lucide "triangle-alert" size=18 %} {% trans "This can't be undone" %}

{% if impact.will_hard_delete %}

{% blocktrans with plan=plan.name %}“{{ plan }}” has never billed anyone, so it will be removed completely.{% endblocktrans %}

{% else %}

{% blocktrans with plan=plan.name %}“{{ plan }}” has billing history, so it will be hidden rather than removed — past invoices will still show what they were billed under.{% endblocktrans %}

{% endif %}
{% if impact.unsubscribed_clubs %}

{% lucide "building-2" size=18 %} {% blocktrans count counter=impact.unsubscribed_clubs|length %}{{ counter }} club is currently on this plan{% plural %}{{ counter }} clubs are currently on this plan{% endblocktrans %}

{% trans "Deleting this plan removes their subscription outright — each shows as not billed for anything afterwards, the same as a club that was never put on a plan." %}

{% endif %} {% if impact.broken_trial_clubs %}

{% lucide "hourglass" size=18 %} {% blocktrans count counter=impact.broken_trial_clubs|length %}{{ counter }} club's trial is scheduled to switch to this plan{% plural %}{{ counter }} clubs' trials are scheduled to switch to this plan{% endblocktrans %}

{% trans "They stay on their current trial plan, but the scheduled switch is cancelled — pick a new plan for them before the trial ends." %}

{% endif %} {% if not impact.has_impact %}
{% lucide "info" size=20 %} {% trans "No club is currently on this plan, or has a trial scheduled to switch to it." %}
{% endif %}
{% csrf_token %}
{% lucide "x" size=16 %} {% trans "Cancel" %}
{% endblock panel %}