{% extends "base.html" %} {% load staticfiles %} {% load rowerfilters %} {% block title %}Planned Sessions{% endblock %} {% block content %}
{% include "planningbuttons.html" %}

Plan for {{ rower.user.first_name }} {{ rower.user.last_name }}

{% if user.is_authenticated and user|is_manager %} {% endif %}
Courses
{% if plannedsessions %}

Click on session name to view, edit to change the session and on the traffic light symbol to add workouts to the session

{% for ps in plannedsessions %} {% if completeness|lookup:ps.id == 'partial' %} {% else %} {% endif %} {% endfor %}
Status On or After On or Before Name Type Mode Edit Planned Actual   Completion Date
{% if completeness|lookup:ps.id == 'not done' %} {% if ps.sessiontype != 'race' %}   {% else %}   {% endif %} {% elif completeness|lookup:ps.id == 'completed' %} {% if ps.sessiontype != 'race' %}   {% else %}   {% endif %} {% elif completeness|lookup:ps.id == 'partial' %} {% if ps.sessiontype != 'race' %}   {% else %}   {% endif %} {% else %} {% if ps.sessiontype != 'race' %}   {% else %}   {% endif %} {% endif %} {{ ps.startdate|date:"Y-m-d" }} {{ ps.enddate|date:"Y-m-d" }} {% if ps.sessiontype != 'race' %} {% if ps.name != '' %} {{ ps.name }} {% else %} Unnamed Session {% endif %} {% else %} {% if ps.name != '' %} {{ ps.name }} {% else %} Unnamed Race {% endif %} {% endif %} {{ ps.get_sessiontype_display }} {{ ps.get_sessionmode_display }} {% if ps.manager == request.user %} Edit {% else %}   {% endif %} {{ ps.sessionvalue }} {{ actualvalue|lookup:ps.id }} {{ ps.sessionunit }} {{ completiondate|lookup:ps.id|date:"Y-m-d" }} {{ completiondate|lookup:ps.id|date:"Y-m-d" }}
{% else %} You have no planned workouts for this period. Planned workouts are created by your coach if you are part of a team. You can create your own planned workouts by purchasing the "Coach" or "Self-Coach" plans. {% endif %}

Print View

{% if unmatchedworkouts %}

Workouts that are not linked to any session

{% for workout in unmatchedworkouts %} {% if workout.user.user == user or user == team.manager %} {% if workout.name != '' %} {% else %} {% endif %} {% else %} {% if workout.name != '' %} {% else %} {% endif %} {% endif %} {% endfor %}
Date Time Name Type Distance Duration Avg HR Max HR
{{ workout.date|date:"Y-m-d" }} {{ workout.starttime|date:"H:i" }} {{ workout.name }} No Name {{ workout.name }}No Name {{ workout.workouttype }} {{ workout.distance }}m {{ workout.duration |durationprint:"%H:%M:%S.%f" }} {{ workout.averagehr }} {{ workout.maxhr }}
{% endif %}
{% endblock %}