blob: b953a3d6bdfc536fac9e6ac91448e538daf90e0f (
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
|
{% extends 'base/form.html' %}
{% block title %}Record {{ workout.name }}{% endblock %}
{% block form %}
{% for exercise in form.exercises.entries %}
<div>
{{ exercise['id'] }}
<h1 class="title is-4 has-text-black">{{ workout.exercises[loop.index0].name }}</h1>
<table class="table is-fullwidth is-hoverable">
<thead>
<th>Set</th>
<th>lbs</th>
<th>Reps</th>
<th>Done</th>
</thead>
<tbody>
{% for set in exercise.sets.entries %}
<tr>
<th>{{ loop.index }}</th>
<td>{{ set['lbs'](class_='input') }}</td>
<td>{{ set['units'](class_='input') }}</td>
<td>
<a class="button" onClick="onClickSetCheck(this)">
<span class="icon is-small">
<i class="fa fa-check"></i>
</span>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="buttons is-centered">
<a class="button is-primary" onClick="onClickAddSet(this)">
<span class="icon is-small">
<i class="fa fa-plus"></i>
</span>
<span>Add Set</span>
</a>
</div>
<hr>
</div>
{% endfor %}
<div class="field is-horizontal is-grouped is-grouped-right">
<button class="button is-success ">
<span class="icon is-small">
<i class="fa fa-check"></i>
</span>
<span>Finish Workout</span>
</button>
</div>
<script async type="text/javascript" src="/static/js/record.js"></script>
{% endblock %}
|