- New /plan page shows all phases in order with current phase highlighted - Add GET/POST/PUT /api/agent/phases endpoints for the AI coach - Plan link added to navigation bar - Agent config updated with phase management instructions
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Training Plan{% endblock %}
|
|
{% block content %}
|
|
<h1>Training Plan</h1>
|
|
<p><small>Your overall training plan, broken into phases. The AI coach creates and manages these phases based on your goals and progress.</small></p>
|
|
|
|
{% for phase in phases %}
|
|
<article{% if loop.first %} style="border-left: 4px solid var(--primary);"{% endif %}>
|
|
<h3>{{ phase.name }}</h3>
|
|
{% if loop.first %}<p><small>Current phase</small></p>{% endif %}
|
|
{% if phase.start_date or phase.end_date %}
|
|
<p><small>
|
|
{% if phase.start_date %}{{ phase.start_date }}{% endif %}
|
|
{% if phase.start_date and phase.end_date %} — {% endif %}
|
|
{% if phase.end_date %}{{ phase.end_date }}{% endif %}
|
|
</small></p>
|
|
{% endif %}
|
|
<p>{{ phase.description }}</p>
|
|
{% if phase.notes %}
|
|
<p><small>{{ phase.notes }}</small></p>
|
|
{% endif %}
|
|
</article>
|
|
{% else %}
|
|
<article>
|
|
<h3>No phases yet</h3>
|
|
<p>Ask the <a href="/chat">AI Coach</a> to set up a training plan with phases.</p>
|
|
</article>
|
|
{% endfor %}
|
|
{% endblock %}
|