{% extends "layouts/base.html" %} {% block title %}{{ tryout.title }} - UdeS team manager{% endblock %} {% block page_title %}{{ tryout.title }}{% endblock %} {% block breadcrumb %}Home / Tryouts / {{ tryout.title }}{% endblock %} {% block content %}

{{ _('Tryout Details') }}

{% if can_edit and not tryout.is_ended %} {{ _('Schedule Match') }} {% endif %} {% if can_edit %}
{% endif %} {% if can_edit and not tryout.is_ended %} {{ _('Edit') }} {% endif %} {% if can_edit %}
{% endif %}
Game {{ tryout.game }}
Date {% if tryout.end_date and tryout.end_date != tryout.date %} {{ tryout.date.strftime('%B %d') }} - {{ tryout.end_date.strftime('%B %d, %Y') }} {% else %} {{ tryout.date.strftime('%A, %B %d, %Y') }} {% endif %}
Location {{ tryout.location or 'Not specified' }}
Status {{ tryout.status | replace('_', ' ') | title }}
Target Team {{ tryout.target_org_team.name if tryout.target_org_team else 'Not specified' }}
Manager {{ tryout.manager.username if tryout.manager else 'Not assigned' }}
Coaches {% if tryout.coaches %} {{ tryout.coaches | map(attribute='username') | join(', ') }} {% elif tryout.coach %} {{ tryout.coach.username }} {% else %} Not assigned {% endif %}
Registered Players {{ registered_players | length }}
{% if tryout.description %}
Description {{ tryout.description }}
{% endif %}
{% if current_user.role == 'player' and not is_registered and tryout.status in ['upcoming', 'in_progress'] %}
{% endif %} {% if can_edit and not tryout.is_ended %}

{{ _('Add Player to Tryout') }}

{% endif %}

Registered Players ({{ registered_players | length }})

{% if current_user.can_evaluate() %} {% endif %} {% if can_edit %} {% endif %} {% for p in registered_players %} {% set reg = registrations | selectattr('player_id', 'equalto', p.id) | first %} {% if current_user.can_evaluate() %} {% endif %} {% if can_edit %} {% endif %} {% else %} {% endfor %}
{{ _('Player') }} {{ _('Status') }}{{ _('Evaluation') }}{{ _('Actions') }}
{{ p.username[:2] | upper }}
{{ p.username }}
{% if can_edit %}
{% else %} {{ reg.status }} {% endif %}
{% if player_eval_status.get(p.id) %} Evaluated {% else %} Pending {% endif %} {% if current_user.can_evaluate() %} {% if player_eval_status.get(p.id) %}Edit{% else %}Evaluate{% endif %} {% endif %} {% if not tryout.is_ended %}
{% endif %}
{{ _('No players registered yet.') }}

{{ _('Teams') }}

{% if can_edit and not tryout.is_ended %} {% endif %}
{% if can_edit and not tryout.is_ended %} {% endif %} {% for team in team_data %}

{{ team.team.name }}

    {% for member in team.members %}
  • {{ member.player.username[:2] | upper }}
    {{ member.player.username }} {% if member.position %} {{ member.position }} {% endif %}
  • {% else %}
  • {{ _('No players assigned yet.') }}
  • {% endfor %}
{% if can_edit and not tryout.is_ended and registered_players %} {% set positions = game_positions.get(tryout.game, []) %}
{% if positions %} {% else %} {% endif %}
{% endif %}
{% else %}

{{ _('No teams created yet.') }}

{% endfor %}
{% if can_view_calendar %}

{{ _('Schedule') }}

{% if can_edit and not tryout.is_ended %} {% endif %}
{% if matches %}
{% if can_edit %} {% endif %} {% for item in match_data %} {% set m = item.match %} {% set participants = item.participants %} {% if can_edit %} {% endif %} {% endfor %}
{{ _('Match') }} {{ _('Type') }} {{ _('Date') }} {{ _('Participants') }} {{ _('Time') }} {{ _('Presence') }} {{ _('Status') }}{{ _('Actions') }}
{{ m.title }} {% if m.match_type == 'team_vs_team' %} Team vs Team {% elif m.match_type == 'player_vs_player' %} Player vs Player {% else %} Player Scrim {% 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 %} {% if item.total_count > 0 %} {% if item.confirmed_count == item.total_count and item.total_count > 0 %} ✅ {{ item.confirmed_count }}/{{ item.total_count }} {% elif item.confirmed_count > 0 %} ✅ {{ item.confirmed_count }}/{{ item.total_count }} {% else %} ⏳ 0/{{ item.total_count }} {% endif %} {% if can_edit and item.player_presence %}
{% for pp in item.player_presence %} {% endfor %}
{% endif %} {% if not can_edit and item.player_presence %} {% for pp in item.player_presence %} {% if pp.player_id == current_user.id %}
{% endif %} {% endfor %} {% endif %} {% else %} {% endif %}
{% if m.match_type == 'team_vs_team' %}
{{ m.team1.name if m.team1 else 'Team 1' }} {% if participants.team1_players %}
    {% for pl in participants.team1_players %}
  • {{ pl.name }}{% if pl.position %} {{ pl.position }}{% endif %}
  • {% endfor %}
{% endif %}
vs
{{ m.team2.name if m.team2 else 'Team 2' }} {% if participants.team2_players %}
    {% for pl in participants.team2_players %}
  • {{ pl.name }}{% if pl.position %} {{ pl.position }}{% endif %}
  • {% endfor %}
{% endif %}
{% elif m.match_type == 'player_vs_player' %}
Team 1 {% if participants.team1_players %}
    {% for pl in participants.team1_players %}
  • {{ pl.name }}{% if pl.position %} {{ pl.position }}{% endif %}
  • {% endfor %}
{% endif %}
vs
Team 2 {% if participants.team2_players %}
    {% for pl in participants.team2_players %}
  • {{ pl.name }}{% if pl.position %} {{ pl.position }}{% endif %}
  • {% endfor %}
{% endif %}
{% else %} {{ participants | join(', ') }} {% endif %}
{{ m.status }} {% if not tryout.is_ended %} {{ _('Edit') }} {% endif %} {{ _('Note') }}
{% endif %} {% if matches %}
{% else %}

{{ _('No matches scheduled yet. Check back later!') }}

{% endif %}
{% endif %} {% if current_user.can_evaluate() %}

{{ _('Evaluation Summary') }}

{% for eval in evaluations %} {% else %} {% endfor %}
{{ _('Player') }} {{ _('Evaluator') }} {{ _('Mecanics') }} {{ _('Cohesion') }} {{ _('Communication') }} {{ _('Gamesense') }} {{ _('Versatility') }} {{ _('Discipline') }} {{ _('Analysis') }} {{ _('Sport Ethics') }} {{ _('Mental') }} {{ _('Overall') }} {{ _('Recommendation') }}
{{ eval.player.username }} {{ eval.evaluator.username }} {{ eval.mecanics_score or '-' }} {{ eval.cohesion_score or '-' }} {{ eval.communication_score or '-' }} {{ eval.gamesense_score or '-' }} {{ eval.versatility_score or '-' }} {{ eval.discipline_score or '-' }} {{ eval.analysis_score or '-' }} {{ eval.sport_ethics_score or '-' }} {{ eval.mental_score or '-' }} {{ eval.overall_score or '-' }} {{ eval.position_recommendation or '-' }}
{{ _('No evaluations yet.') }}
{% endif %}
{% endblock %}