~cypheon/trakka

ref: a14c69be685a87d332f954572143907fe63e2acb trakka/activities/jinja2/health.html -rw-r--r-- 1.4 KiB
a14c69be — Johann Rudloff Implement saving health measurements 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
33
34
35
36
37
38
39
40
{% extends 'profile_main.html' %}

{% block profile %}
<form action="{{ url('activities:health-measurement') }}" method="post" enctype="application/x-www-form-urlencoded">
{{ 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>
  <p>
    <label for="measurement_date" class="db pv2">Date of measurement</label>
    <input class="" type="date" name="measurement_date" required
           value="{{ now() | isodate}}">
    <label for="measurement_time" class="dn">Time of measurement</label>
    <input class="" type="time" name="measurement_time" required
           value="{{ now() | isotime }}">
  </p>
  <input type=submit class="{{styles['action-button']}}" value="Add measurements">
</form>
{% endblock %}