171 lines
5.5 KiB
HTML
171 lines
5.5 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">
|
|
<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.</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>
|
|
<p>If you use default power zones, we will use the namees and
|
|
values as defined by
|
|
<a href="https://www.trainingpeaks.com/blog/power-training-levels/" target="_">Coggan</a>.</p>
|
|
<table>
|
|
{{ powerform.as_table }}
|
|
</table>
|
|
{% csrf_token %}
|
|
<input type="submit" value="Update">
|
|
</form>
|
|
</li>
|
|
<li class="grid_2">
|
|
<h2>Power Zones</h2>
|
|
<p>Use this form if you want to rename and redefine your power
|
|
zones independent of the value of FTP. We recommend, however, that
|
|
you leave these values as they are and only change the FTP and OTW
|
|
slack values.</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><th>Lower Boundary (Watt)</th>
|
|
</tr>
|
|
<tr>
|
|
<th></th><th></th><th>Indoor</th><th>OTW</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>
|
|
<td>{{ user.rower.pw_ut2|otwslack:user }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>3</td><td>{{ powerzonesform.ut1name }}</td>
|
|
<td>{{ powerzonesform.pw_ut1 }}</td>
|
|
<td>{{ user.rower.pw_ut1|otwslack:user }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>4</td><td>{{ powerzonesform.atname }}</td>
|
|
<td>{{ powerzonesform.pw_at }}</td>
|
|
<td>{{ user.rower.pw_at|otwslack:user }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>5</td><td>{{ powerzonesform.trname }}</td>
|
|
<td>{{ powerzonesform.pw_tr }}</td>
|
|
<td>{{ user.rower.pw_tr|otwslack:user }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>6</td><td>{{ powerzonesform.anname }}</td>
|
|
<td>{{ powerzonesform.pw_an }}</td>
|
|
<td>{{ user.rower.pw_an|otwslack:user }}</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>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>
|
|
<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>
|
|
</ul>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% block sidebar %}
|
|
{% include 'menu_profile.html' %}
|
|
{% endblock %}
|