{% load i18n %} {% load manager_extras %}
{% csrf_token %} {% for current_exercise in set.exercises.all %} {% if current_exercise.id == exercise.id %} {% endif %} {% endfor%} : {% comment %} TODO: see if there is a better way to show and edit the sets for an exercise. The way this worked, a user had to change the sets, save, and edit again. Not very user friendly. {% endcomment%} {% for setting in exercise|get_current_settings:set.id %} {% endfor %} {% for setting in new_settings %} {% endfor %}