{% extends "layouts/base.html" %} {% block title %}{{ objective.title }} - UdeS team manager{% endblock %} {% block page_title %}{{ objective.title }}{% endblock %} {% block breadcrumb %}{{ _('Home') }} / {{ _('Objectives') }} / {{ objective.title }}{% endblock %} {% block content %}

{{ objective.title }}

{{ objective.description or '' }}

{{ _('Type') }}{% for val, label in objective_types %}{% if val == objective.type %}{{ label }}{% endif %}{% endfor %}
{{ _('Assigned to') }}{% if objective.player %}{{ objective.player.username }}{% elif objective.team %}{{ objective.team.name }}{% else %}-{% endif %}
{{ _('Category') }}{{ objective.category or '-' }}
{% for val, label in objective_statuses %}{% if val == objective.status %}{{ label }}{% endif %}{% endfor %} {% set pl = {'high':_('High'),'medium':_('Medium'),'low':_('Low')} %}{{ pl.get(objective.priority,objective.priority) }}

{{ _('KPI Progression') }}

{% if objective.kpi_target %}
{% endif %}

{{ _('KPI Measurements') }}

{% if entries %} {% for e in entries %}{% endfor %}
{{ _('Date') }}{{ _('Value') }}{{ _('Note') }}
{{ e.recorded_at.strftime('%Y-%m-%d %H:%M') }}{% if e.value is not none %}{{ e.value }}{% else %}-{% endif %}{{ e.note or '' }}
{% else %}

{{ _('No measurements recorded yet.') }}

{% endif %}

{{ _('Comments') }}

{% if comments %}
{% for c in comments %}
{{ c.coach.username }} {{ c.created_at.strftime('%Y-%m-%d %H:%M') }}

{{ c.content }}

{% endfor %}
{% else %}

{{ _('No comments yet.') }}

{% endif %}

{{ _('Details') }}

{{ _('Priority') }}{% set pl = {'high':_('High'),'medium':_('Medium'),'low':_('Low')} %}{{ pl.get(objective.priority,objective.priority) }}
{{ _('Status') }}{% for val, label in objective_statuses %}{% if val == objective.status %}{{ label }}{% endif %}{% endfor %}
{{ _('Start date') }}{{ objective.start_date.strftime('%Y-%m-%d') if objective.start_date else '-' }}
{{ _('Deadline') }}{{ objective.due_date.strftime('%Y-%m-%d') if objective.due_date else '-' }}
{{ _('Progress') }}{{ objective.progress }}%
{% if objective.kpi_target %}
{{ _('KPI Target') }}{{ objective.kpi_target }}{% if objective.kpi_unit %}{{ objective.kpi_unit }}{% endif %}
{% endif %} {% if can_edit %} {{ _('Edit') }}{% endif %}
{% if personal_notes or team_notes %}

{{ _('Related Notes') }}

{% if personal_notes %}
{{ _('Personal Notes') }}
{% for n in personal_notes %}
{{ n.coach.username }} {{ n.created_at.strftime('%Y-%m-%d') }}

{{ n.content[:200] }}

{% endfor %}{% endif %}{% if team_notes %}
{{ _('Team Notes') }}
{% for n in team_notes %}
{{ n.coach.username }} {{ n.created_at.strftime('%Y-%m-%d') }}

{{ n.content[:200] }}

{% endfor %}{% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}