{% extends "management/base.html" %} {% load i18n lucide static ui %} {% block heading %}{% if update_view %}{% blocktrans %}Edit {{ object }}{% endblocktrans %}{% else %}{% trans "New event" %}{% 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." %}
{# 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 "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 & when" %}
{% trans "Venue and the times members see on their invite." %}
{% form_field form.location %}
{% form_field form.opponent %}
{% form_field form.start %} {% form_field form.end %} {% form_field form.gathering %} {% form_field form.deadline %}
{% lucide "swords" size=18 %}
{% trans "Game details" %}
{% trans "Only used for games -- competition, referees and, once played, the score." %}
{% form_field form.competition %} {% form_field form.external_game_id %} {% form_field form.max_referees %}
{% if update_view %} {% comment %} Score/live status only exist to record once a game has actually been created -- the add form leaves them out entirely (see EventForm's editing=False path). {% endcomment %}
{% form_field form.score_for %} {% form_field form.score_against %} {% form_field form.is_live show_as_toggle=True %}
{% endif %}
{% lucide "arrow-left" size=16 %} {% trans "Cancel" %}
{% endblock panel %} {% block extra_body %} {% endblock extra_body %}