{% extends "layouts/base.html" %} {% block title %}Team Matches - TryoutPro{% endblock %} {% block page_title %}Team Matches{% endblock %} {% block breadcrumb %}{% endblock %} {% block header_actions %} {% if teams %}
| Match | Team | Opponent | Date | Time | Location | Presence | Status | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ m.title }} | {{ m.org_team.name }} | {% if m.opponent %} {{ m.opponent }} {% else %} Practice {% endif %} | {{ m.date.strftime('%m/%d/%Y') }} | {% if m.start_time and m.end_time %} {{ m.start_time.strftime('%H:%M') }} - {{ m.end_time.strftime('%H:%M') }} {% else %} TBD {% endif %} | {{ m.location or '—' }} |
{% if item.total_count > 0 %}
{% for p in item.participants %}
{{ p.player.username[:2] | upper }} {{ p.player.username }}
{% if p.is_confirmed %}✅{% else %}⏳{% endif %}
{% endfor %}
{% else %}
—
{% endif %}
|
{{ m.status }} | {% set can_manage_this = (current_user.role in ['president', 'manager']) or (current_user.role == 'coach' and m.org_team.coaches.filter_by(id=current_user.id).first()) or (current_user.role == 'coach' and m.org_team.coach_id == current_user.id) %} {% if can_manage_this %} {% endif %} {% if current_user.role == 'player' %} {% for p in item.participants %} {% if p.player.id == current_user.id %} {% endif %} {% endfor %} {% endif %} |
Regular season matches have not been scheduled yet.
{% if teams %}