{% extends "base.html" %} {% load i18n %} {% load static wger_extras crispy_forms_tags %} {# #} {# Opengraph #} {# #} {% block opengraph %} {{ block.super }} {% endblock %} {% block title %}{{schedule.name}}{% endblock %} {% block header %} {% endblock %} {% block content %}
{% translate "Start date" %} {{schedule.start_date}}
{% translate "Schedule active" %} {% if schedule.is_active %} {% else %} {% endif %}
{% translate "Is a loop" %} {% if schedule.is_loop %} {% translate "This schedule is a loop and will go through the workouts above till you deactivate it" %} {% else %} {% endif %}
{% if is_owner %} {% endif %} {% for step in schedule.schedulestep_set.select_related %} {% if is_owner %} {% endif %} {% empty %} {% if is_owner %} {% endif %} {% endfor %} {% if is_owner %} {% endif %}
{% translate "Nr." %}{% translate "Actions" %}{% translate "Workout" %} {% translate "Weeks" %}
{{ forloop.counter }} {{ step.workout }} {% if active_workout == step %}  {% translate "active" %} {% endif %} {{ step.duration }}
{% translate "No workouts found." %} {% translate "Add one now." %}
{% if not schedule.is_active %} {% translate "Start schedule" %} {% endif %} {% translate "Add workout" %}
{% for step in schedule.schedulestep_set.select_related %} {% with step_dates=step.get_dates %}

{% blocktranslate count weeks=step.duration %}{{ weeks }} Week {% plural %}{{ weeks }} Weeks {% endblocktranslate %}

{% if active_workout == step %} {% translate "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 %} {% if is_owner %}

{% translate "Adding workouts" %}

{% blocktranslate %}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.{% endblocktranslate %}

{% endif %} {% endblock %} {# #} {# Options #} {# #} {% block options %}
{% endblock %}