Private
Public Access
1
0
Files
rowsandall/rowers/templates/rower_preferences.html
Sander Roosendaal 196548fdcc staticfiles to static
2021-04-14 10:00:14 +02:00

160 lines
4.8 KiB
HTML

{% extends "newbase.html" %}
{% load static %}
{% load rowerfilters %}
{% block title %}Change Rower Preferences{% endblock %}
{% block main %}
<h1>User Preferences for {{ rower.user.first_name }} {{ rower.user.last_name }}</h1>
<p><a href="http://analytics.rowsandall.com/2017/11/02/rowsandall-settings-page-tutorial/">Need help? Click to read the tutorial</a></p>
<ul class="main-content">
<li class="grid_2">
<p>
<h2>Heart Rate Zones</h2>
<p>Set your heart rate zones with this form.</p>
<form enctype="multipart/form-data" action="" method="post">
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
{{ form.non_field_errors }}
</p>
{% endif %}
<table>
<thead>
<tr>
<th>ID</th><th>Zone Name</th><th>Lower Boundary (BPM)</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td><td>{{ form.hrrestname }}</td>
<td>{{ form.rest }}</td>
</tr>
<tr>
<td>2</td><td>{{ form.hrut2name }}</td>
<td>{{ form.ut2 }}</td>
</tr>
<tr>
<td>3</td><td>{{ form.hrut1name }}</td>
<td>{{ form.ut1 }}</td>
</tr>
<tr>
<td>4</td><td>{{ form.hratname }}</td>
<td>{{ form.at }}</td>
</tr>
<tr>
<td>5</td><td>{{ form.hrtrname }}</td>
<td>{{ form.tr }}</td>
</tr>
<tr>
<td>6</td><td>{{ form.hranname }}</td>
<td>{{ form.an }}</td>
</tr>
<tr>
<td>7</td><td>{{ form.hrmaxname }}</td>
<td>{{ form.max }}</td>
</tr>
</tbody>
</table>
{% csrf_token %}
<input type="submit" value="Update Heart Rate Zones">
</form>
</li>
<li class="grid_2">
<h2>Power Zones</h2>
<p>The power zones are defined relative to power as measured by the
indoor rower.</p>
<form enctype="multipart/form-data" action="" method="post">
{% if powerzonesform.errors %}
<p style="color: red;">
Please correct the error{{ powerzonesform.errors|pluralize }} below.
{{ powerzonesform.non_field_errors }}
</p>
{% endif %}
<table>
<thead>
<tr>
<th>ID</th><th>Zone Name</th><th>Lower Boundary (Watt)</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td><td>{{ powerzonesform.ut3name }}</td>
<td></td>
</tr>
<tr>
<td>2</td><td>{{ powerzonesform.ut2name }}</td>
<td>{{ powerzonesform.pw_ut2 }}</td>
</tr>
<tr>
<td>3</td><td>{{ powerzonesform.ut1name }}</td>
<td>{{ powerzonesform.pw_ut1 }}</td>
</tr>
<tr>
<td>4</td><td>{{ powerzonesform.atname }}</td>
<td>{{ powerzonesform.pw_at }}</td>
</tr>
<tr>
<td>5</td><td>{{ powerzonesform.trname }}</td>
<td>{{ powerzonesform.pw_tr }}</td>
</tr>
<tr>
<td>6</td><td>{{ powerzonesform.anname }}</td>
<td>{{ powerzonesform.pw_an }}</td>
</tr>
</tbody>
</table>
{% csrf_token %}
<div class="grid_2 prefix_2 suffix_2">
<input type="submit" value="Update Power Zones">
</div>
</form>
</li>
<li class="grid_2">
<form enctype="multipart/form-data" action="" method="post">
<h2>Functional Threshold Power and OTW Slack</h2>
<p>Use this form to quickly change your zones based on the power of a
recent
full out 60 minutes effort on the ergometer.
It will update all zones defined above.</p>
<p>The OTW Power Slack is the percentage drop of your On-the-water
rowing power
vs the erg power. Typical values are around 15%. This will lower
the power zones for your OTW workouts.</p>
<table>
{{ powerform.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Update">
</form>
</li>
<li class="grid_2">
<form enctype="multipart/form-data" action="" method="post">
<h2>Fitness and Performance Manager Settings</h2>
<p>Use this form to change the parameters affecting your performance management.</p>
<p>A shorter range for the CP calculations
will give you notifications of fitness improvements more often,
but will also quickly forget those breakthrough workouts. Shorter decay
time constants for the performance manager will model a quicker building up
of fitness and a faster recovery. Recommended values are 42 days (fitness)
and 7 days (fatigue).</p>
<table>
{{ cpform.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Update">
</form>
</li>
</ul>
{% endblock %}
{% block sidebar %}
{% include 'menu_profile.html' %}
{% endblock %}