{% extends "layouts/base.html" %} {% block title %}{% if match %}Edit{% else %}Schedule{% endif %} Team Match - UdeS team manager{% endblock %} {% block page_title %}{% if match %}Edit{% else %}Schedule{% endif %} Team Match{% endblock %} {% block breadcrumb %}Home / Team Matches / {% if match %}Edit{% else %}New{% endif %}{% endblock %} {% block content %}

{% if match %}Edit Match{% else %}Schedule New Match{% endif %} — {{ team.name }}

{% if not is_practice %}
{% endif %}
{{ _('Auto-calculated if left empty (start + 30 min)') }}
{% if match %}
{% endif %}
{% if not match %}

{{ _('Team Roster (auto-included)') }}

All {{ team_players | length }} player(s) will be added automatically
{% if team_players %}
{% for tp in team_players %} {{ tp.player.username }} {% if tp.status == 'substitute' %} (sub) {% endif %} {% endfor %}
{% else %}

{{ _('No players on this team. Add players in the Teams page first.') }}

{% endif %}
{% else %}

{{ _('Participants') }}

{% if match.participants %} {% for p in match.participants.all() %} {% endfor %}
{{ _('Player') }} {{ _('Presence') }}
{{ p.player.username if p.player else 'Unknown' }} {% if p.is_confirmed %} ✅ Confirmed {% else %} ⏳ Pending {% endif %}
{% else %}

{{ _('No participants recorded.') }}

{% endif %}
{% endif %}
Cancel
{% endblock %}