{% 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 %}