{% extends "management/base.html" %} {% load i18n lucide ui %} {% block heading %}{{ series.title }}{% endblock heading %} {% block subheading %}{{ series.get_kind_display }} · {{ recurrence_summary }}{% endblock subheading %} {% block actions %} {% if can_manage %} {% lucide "pencil" size=16 %} {% trans "Edit" %}
{% csrf_token %}
{% endif %} {% endblock actions %} {% block panel %}

{% lucide "repeat" size=18 %} {% trans "Recurrence" %}

{% trans "Pattern" %}
{{ recurrence_summary }}
{% trans "First occurrence" %}
{{ series.dtstart|date:"j M Y H:i" }}
{% trans "Repeats until" %}
{{ series.until|date:"j M Y H:i"|default:"—" }}
{% trans "Generated up to" %}
{{ series.generated_until|date:"j M Y"|default:"—" }}

{% lucide "info" size=18 %} {% trans "Template" %}

{% trans "Location" %}
{{ series.location|default:"—" }}
{% trans "Opponent" %}
{{ series.opponent|default:"—" }}
{% trans "Teams" %}
{% for team in series.teams.all %}{{ team.name }}{% if not forloop.last %}, {% endif %}{% empty %}—{% endfor %}

{% lucide "calendar" size=18 %} {% trans "Occurrences" %}

{% for occurrence in occurrences %} {% empty %} {% endfor %}
{% trans "When" %} {% trans "Status" %}
{{ occurrence.start|date:"j M Y H:i" }} {% if occurrence.cancelled %} {% lucide "ban" size=12 %} {% trans "Cancelled" %} {% elif occurrence.detached %} {% lucide "unlink" size=12 %} {% trans "Detached" %} {% elif occurrence.is_past %} {% trans "Past" %} {% else %} {% trans "Upcoming" %} {% endif %}
{% trans "No occurrences generated yet." %}
{% endblock panel %} {% block extra_body %} {% if can_manage %} {% trans "Stop repeating" as stop_title %} {% blocktrans with name=series.title asvar stop_body %}Stop “{{ name }}” from generating new occurrences? Existing ones (past and future) are left exactly as they are — this only affects what happens from here on.{% endblocktrans %} {% url 'management:event_series_stop' series.pk as stop_url %} {% include "controlpanel/_confirm_modal.html" with modal_id="series_stop_modal" title=stop_title body=stop_body action_url=stop_url submit_label=stop_title submit_icon="octagon-pause" %} {% trans "Delete series" as delete_title %} {% blocktrans with name=series.title asvar delete_body %}Delete “{{ name }}”? This also deletes every occurrence it has ever generated, past and future, and their attendance records. This cannot be undone — use “Stop repeating” instead if you just want it to stop.{% endblocktrans %} {% url 'management:event_series_delete' series.pk as delete_url %} {% include "controlpanel/_confirm_modal.html" with modal_id="series_delete_modal" title=delete_title body=delete_body action_url=delete_url submit_label=delete_title %} {% endif %} {% endblock extra_body %}