{% extends "management/base.html" %} {% load i18n lucide static ui %} {% block heading %}{% if update_view %}{% blocktrans %}Edit {{ object }}{% endblocktrans %}{% else %}{% trans "New series" %}{% endif %}{% endblock heading %} {% block panel %}
{% csrf_token %} {% for error in form.non_field_errors %}
{{ error }}
{% endfor %}
{% lucide "clipboard-list" size=18 %}
{% trans "What's happening?" %}
{% trans "Pick a kind to reveal only the fields that matter for it -- it applies to every occurrence this series generates." %}
{# Real radios, not a JS-synced facade over a hidden {% if value == "training" %}{% lucide "dumbbell" size=20 %} {% elif value == "game" %}{% lucide "swords" size=20 %} {% elif value == "tournament" %}{% lucide "trophy" size=20 %} {% elif value == "meeting" %}{% lucide "message-square" size=20 %} {% elif value == "social" %}{% lucide "party-popper" size=20 %} {% elif value == "other" %}{% lucide "circle-ellipsis" size=20 %} {% else %}{% lucide "calendar" size=20 %} {% endif %} {{ label }} {% endfor %}
{% if form.kind.errors %}

{{ form.kind.errors|join:" " }}

{% endif %}
{% form_field form.title %}
{% lucide "sparkles" size=16 %} {% trans "This line updates live as you fill in the form below." %}
{% lucide "repeat" size=18 %}
{% trans "Repeats" %}
{% trans "The friendly pattern below, or drop into a raw recurrence rule for anything unusual." %}
{% trans "Only used for a weekly pattern -- a monthly one repeats on the same day of the month as the first occurrence below." as weekdays_help %}
{% form_field form.frequency %} {% form_field form.interval %} {% form_field form.weekdays help_text=weekdays_help %} {% form_field form.dtstart %} {% form_field form.until %}
{% trans "Advanced: raw recurrence rule" %}
{% form_field form.advanced_rrule %}
{% lucide "users" size=18 %}
{% trans "Who's invited" %}
{% trans "Teams and groups invite every current member automatically." %}
{% if "club_wide" in form.fields %}
{% form_field form.club_wide show_as_toggle=True %}
{% endif %}
{% form_field form.teams %} {% form_field form.groups %}
{% form_field form.invited_members %} {% form_field form.excluded_members %}
{% lucide "calendar-clock" size=18 %}
{% trans "Where & timing" %}
{% trans "Venue, and how long each occurrence runs relative to its start." %}
{% form_field form.location %}
{% form_field form.opponent %}
{% form_field form.duration_hours %} {% form_field form.duration_minutes %} {% form_field form.gathering_minutes_before %} {% form_field form.deadline_minutes_before %}
{% lucide "arrow-left" size=16 %} {% trans "Cancel" %}
{% endblock panel %} {% block extra_body %} {% endblock extra_body %}