{% extends "layouts/base.html" %} {% block title %}{{ _('Notes') }} - TryoutPro{% endblock %} {% block page_title %}{{ _('Notes') }}{% endblock %} {% block breadcrumb %}Home / Notes{% endblock %} {% block content %}
{% if org_team %}

{{ _('Team Notes') }}

{{ org_team.name }}

{{ _('These notes will be visible to all players on your team.') }}

{% endif %}

{{ _('Add Personal Note') }}

{% if org_team %} {{ org_team.name }} {% endif %}

{{ _('These notes will only be visible to the selected player.') }}

{{ _('Link this note to a specific match, tryout, or team for better organization.') }}

{{ _('One on One Requests') }}

{% if org_team %} {{ org_team.name }} {% endif %}
{% if one_on_one_requests %}
{% for req in one_on_one_requests %} {% endfor %}
{{ _('Player') }} {{ _('Date') }} {{ _('Time') }} {{ _('Discussion Points') }} {{ _('Status') }} {{ _('Actions') }}
{{ req.player.username if req.player else 'Unknown' }} {{ req.date.strftime('%b %d, %Y') }} {{ req.start_time.strftime('%I:%M %p') }} - {{ req.end_time.strftime('%I:%M %p') }} {{ req.points or 'N/A' }} {% if req.status == 'pending' %} Pending {% elif req.status == 'approved' %} Approved {% elif req.status == 'rejected' %} Rejected {% endif %} {% if req.status == 'pending' %}
{% elif req.status == 'rejected' and req.coach_rejection_message %} Reason: {{ req.coach_rejection_message[:50] }}{% if req.coach_rejection_message|length > 50 %}...{% endif %} {% endif %}
{% else %}

{{ _('No One on One requests from your players yet.') }}

{% endif %}
{% if org_team and team_notes %}

{{ _('Team Notes History') }}

{% for note in team_notes %} {% endfor %}
{{ _('Last Updated') }} {{ _('Content Preview') }}
{{ note.updated_at.strftime('%B %d, %Y at %I:%M %p') if note.updated_at else 'Unknown date' }} {{ note.content[:100] if note.content else '' }}{% if note.content and note.content|length > 100 %}...{% endif %}
{% endif %} {% if personal_notes %}

{{ _('Recent Personal Notes') }}

{% for note in personal_notes %}
{{ note.player.username if note.player else 'Unknown Player' }} - {{ note.created_at.strftime('%B %d, %Y') if note.created_at else 'Unknown date' }} {{ note.content | nl2br if note.content else '' }} From: {{ note.coach.username if note.coach else 'Unknown Coach' }} {% if note.match_id or note.team_id or note.tryout_id %}
{% if note.match_id and note.match %} {{ note.match.title }} {% endif %} {% if note.team_id and note.team %} {{ note.team.name }} {% endif %} {% if note.tryout_id and note.tryout %} {{ note.tryout.title }} {% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}