{% extends "base.html" %} {% load i18n static wger_extras django_bootstrap_breadcrumbs %} {# #} {# Opengraph #} {# #} {% block opengraph %} {{ block.super }} {% endblock %} {# #} {# Breadcrumbs #} {# #} {% block breadcrumbs %} {{ block.super }} {% breadcrumb workout workout %} {% breadcrumb "Weight log" "manager:log:log" workout.pk %} {% endblock %} {# #} {# Title #} {# #} {% block title %}{% trans "Weight log for workout" %}{% endblock %} {# #} {# Header #} {# #} {% block header %} {% endblock %} {# #} {# Content #} {# #} {% block content %} {% if workout.comment %}

{% trans "Goal" %}: {{workout.comment}}

{% endif %} {% for day in workout.canonical_representation.day_list %}

{{ day.obj.description }}

{% if is_owner %}

{% trans 'Add weight log to this day' %}

{% endif %} {% for set in day.set_list %} {% for exercise in set.exercise_list %} {% with day_list=workout_log|get_item:day.obj.id %} {% with exercise_list=day_list|get_item:exercise.obj.id %}
{{ exercise.obj.name }}
{% if exercise_list.log_by_date %} {# TODO: perhaps move the draw_weight_chart function to render_weight_log #} {% with list=exercise_list.log_by_date %} {% render_weight_log list exercise_list.div_uuid owner_user %} {% endwith %} {% else %}

{% trans "No weight entries here." %}

{% endif %}
{% endwith %} {% endwith %} {% empty%}

{% trans "No exercises for this day." %}

{% endfor %} {% endfor %} {% endfor %} {% endblock %} {# #} {# Side bar #} {# #} {% block sidebar %}

{% trans "Notes" %}

{% blocktrans %}This page shows the weight logs belonging to this workout only. Click on an exercise to see all the historical data for it.{% endblocktrans %}

{% blocktrans %}If on a single day there is more than one entry with the same number of repetitions, but different weights, only the entry with the higher weight is shown in the diagram.{% endblocktrans %}

{% blocktrans %}Note that only entries with a weight unit (kg or lb) and repetitions are charted, other combinations such as time or until failure are ignored here.{% endblocktrans %}

{% endblock %}