summaryrefslogtreecommitdiff
path: root/templates/exercises.html
blob: cd7aa5480ae58d95088209aaede1788e485c416c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{% extends "base.html" %}

{% block title %} — Exercises{% endblock %}

{% block content %}
<section class="exercises-page">
  <h2>Exercise Configuration</h2>

  <p class="instruction">
    The movement pattern is what matters. Select an equivalent exercise
    if your facility requires it. The program structure is preserved regardless
    of which specific implement you use.
  </p>

  {% for day in days %}
  <div class="exercise-day">
    <h3 class="day-header">Day {{ day.number }}: {{ day.name }}</h3>

    {% for slot in day.slots %}
    <div class="exercise-slot">
      <div class="slot-current">
        <span class="slot-canonical">{{ slot.canonical_name }}</span>
        {% if slot.has_substitute %}
        <span class="slot-active">&rarr; {{ slot.active_name }}</span>
        {% endif %}
      </div>

      {% if slot.options %}
      <form method="post" action="/exercises/swap" class="swap-form">
        <input type="hidden" name="canonical-id" value="{{ slot.canonical_id }}">
        <select name="substitute-id">
          <option value="0"
            {% ifequal slot.active_id slot.canonical_id %}selected{% endifequal %}>
            {{ slot.canonical_name }} (default)
          </option>
          {% for option in slot.options %}
          <option value="{{ option.id }}"
            {% ifequal option.id slot.active_id %}selected{% endifequal %}>
            {{ option.name }}
          </option>
          {% endfor %}
        </select>
        <button type="submit" class="btn-swap">SWAP</button>
      </form>
      {% endif %}
    </div>
    {% endfor %}
  </div>
  {% endfor %}

  <a href="/" class="btn-secondary">RETURN TO DASHBOARD</a>
</section>
{% endblock %}

{% block quote %}
<blockquote>
  &ldquo;The specific exercise is less important than the principle it serves.
  What matters is that the target muscle is worked to failure through a full
  range of motion.&rdquo;
  <cite>&mdash; Mike Mentzer</cite>
</blockquote>
{% endblock %}
Copyright 2019--2026 Marius PETER