{% extends 'base.html' %} {% block content %}

{{ person_name }}

List of workouts
{{ render_partial('partials/custom_select.html', name='view', options=[ {'id': 'month', 'name': 'Month'}, {'id': 'year', 'name': 'Year'}, {'id': 'notes', 'name': 'Notes'}, {'id': 'overview', 'name': 'Overview', 'selected': true} ], multiple=false, search=false, placeholder='View', hx_get=url_for('calendar.get_calendar', person_id=person_id), hx_target='#container', hx_push_url=true) }}
{{ render_partial('partials/custom_select.html', name='exercise_id', options=exercises, multiple=true, search=true, placeholder='Filter exercises', hx_get=url_for('person_overview', person_id=person_id), hx_include="[name='exercise_id'],[name='min_date'],[name='max_date'],[name='graph_axis']", hx_target='#container', hx_push_url=true) }}
{{ render_partial('partials/tags.html', person_id=person_id, tags=tags) }}
{% for graph in exercise_progress_graphs %} {{ render_partial('partials/sparkline.html', **graph.progress_graph) }} {% endfor %}
{% if workouts|length > 0 %} {% for exercise in selected_exercises %} {% endfor %} {% for workout in workouts %} {% for exercise in selected_exercises %} {% endfor %} {% endfor %}
Date {{ exercise.name }}
{{ workout.start_date | strftime("%b %d %Y") }} {% for set in workout.exercises[exercise.id] %} {{ set.repetitions }} x {{ set.weight }}kg {% endfor %}
{% endif %} {% if workouts|length == 0 %} {% endif %}
{% endblock %} {% block add_workout_button %} {% endblock %}