{% extends "base.html" %} {% load staticfiles %} {% load rowerfilters %} {% block title %}Planned Sessions{% endblock %} {% block content %}
Click on session name to view, edit to change the session and on the traffic light symbol to add workouts to the session
| 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 }} | {% if completeness|lookup:ps.id == 'partial' %}{{ completiondate|lookup:ps.id|date:"Y-m-d" }} | {% else %}{{ completiondate|lookup:ps.id|date:"Y-m-d" }} | {% endif %}
{% if unmatchedworkouts %}
| Date | Time | Name | Type | Distance | Duration | Avg HR | Max HR | |||
|---|---|---|---|---|---|---|---|---|---|---|
| {{ workout.date|date:"Y-m-d" }} | {{ workout.starttime|date:"H:i" }} | {% if workout.user.user == user or user == team.manager %} {% if workout.name != '' %}{{ workout.name }} | {% else %}No Name | {% endif %} {% else %} {% if workout.name != '' %}{{ workout.name }} | {% else %}No Name | {% endif %} {% endif %}{{ workout.workouttype }} | {{ workout.distance }}m | {{ workout.duration |durationprint:"%H:%M:%S.%f" }} | {{ workout.averagehr }} | {{ workout.maxhr }} |