{% extends "base.html" %} {% load i18n staticfiles wger_extras %} {% block title %}{{schedule.name}}{% endblock %} {% block header %} {% endblock %} {% block content %} {% for step in schedule.schedulestep_set.select_related %} {% endfor %} {% if not schedule.is_active %} {% endif %}
{% trans "Start date" %} {{schedule.start_date}}
{% trans "Schedule active" %} {% if schedule.is_active %} {% else %} {% endif %}
{% trans "Is a loop" %} {% if schedule.is_loop %} {% trans "This schedule is a loop and will go through the workouts above till you deactivate it" %} {% else %} {% endif %}
{% trans "Start schedule" %}
{% for step in schedule.schedulestep_set.select_related %} {% if active_workout == step %} {% trans "active" %} {% endif %}

{{ forloop.counter }} - {{ step.workout }}

{{ workout.creation_date }}

{% trans "Weeks" %}: {{ step.duration }}

{% empty %} {% trans "No workouts found." %}
{% trans "Add one now." %}
{% endfor %} {% trans "Add workout" %}

{% blocktrans %}Add as many workouts to the schedule as you want. You can edit the order by dragging and dropping them. It's also possible to add one workout more than once.{% endblocktrans %}

{% for step in schedule.schedulestep_set.select_related %} {% with step_dates=step.get_dates %}

{% blocktrans count weeks=step.duration %}{{ weeks }} Week {% plural %}{{ weeks }} Weeks {% endblocktrans %}

{% if active_workout == step %} {% trans "active" %} {% endif %}
{{step_dates.0}}
{{step_dates.1}}
{% for day in step.workout.canonical_representation.day_list %}
{% render_day day.obj False %}
{% endfor %}
{% endwith %} {% endfor %} {% endblock %} {% block sidebar %} {% endblock %} {# #} {# Options #} {# #} {% block options %}
{% endblock %}