~cypheon/trakka

ref: e30fe514a2dd8f4e81d8cf3910e604f8faffa1a0 trakka/activities/jinja2/health.html -rw-r--r-- 1010 bytes
e30fe514 — Johann Rudloff Take climbed meters into account when estimating energy expenditure 1 year, 2 months ago
                                                                                
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
{% extends 'profile_main.html' %}

{% block profile %}
<form action="TODO:store_measurement" method="post" enctype="multipart/form-data">
{{ csrf_input }}
  <p>
    You can leave fields empty, only set fields will be stored.
  </p>

  <p>
    <label for="body_weight" class="db pv2">Body weight</label>
    <input class="w3" type="number" name="body_weight" min="1" max="1000"
    step="0.01"> kg
  </p>
  <p>
    <label for="body_height" class="db pv2">Body height</label>
    <input class="w3" type="number" name="body_height" min="10" max="400"
    step="1"> cm
  </p>
  <p>
    <label for="min_hr" class="db pv2">Resting heart rate</label>
    <input class="w3" type="number" name="min_hr" min="1" max="1000" step="1">
    BPM
  </p>
  <p>
    <label for="max_hr" class="db pv2">Maximum heart rate</label>
    <input class="w3" type="number" name="max_hr" min="1" max="1000" step="1">
    BPM
  </p>
  <input type=submit class="{{styles['action-button']}}" value="Add measurements">
</form>
{% endblock %}