summaryrefslogtreecommitdiff
path: root/app/templates/workout/record.html
blob: 94fe611b5cb009273217a68b5a9a24eac812939a (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
{% extends 'base/form.html' %}

{% block title %}Record {{ workout.name }}{% endblock %}

{% block form %}
{% for exercise in workout.exercises %}
<div>
	<h1 id="{{ exercise.name }}" class="title is-4 has-text-black">{{ exercise.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 i in range(exercise.sets) %}
				<tr>
					<th>{{ i + 1 }}</th>
					<td><input class="input" type="number"></td>
					<td><input class="input" type="number"></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>
		<a class="button is-danger">Skip</a>
	</div>
	<hr>
</div>
{% endfor %}

<script async type="text/javascript" src="/static/js/record.js"></script>

{% endblock %}