Private
Public Access
1
0

improvment in prefs

This commit is contained in:
Sander Roosendaal
2022-12-19 08:01:26 +01:00
parent 555eb0a518
commit 9db40cb8e8
2 changed files with 53 additions and 4 deletions

View File

@@ -4222,7 +4222,7 @@ class RowerExportForm(ModelForm):
# Simple form to set rower's Functional Threshold Power # Simple form to set rower's Functional Threshold Power
class SimpleRowerPowerForm(ModelForm): class SimpleRowerPowerForm(ModelForm):
otwftp = forms.IntegerField(initial=0,required=False, label='FTP on water') otwftp = forms.IntegerField(initial=0,required=True, label='FTP on water')
class Meta: class Meta:
model = Rower model = Rower
fields = ['ftp'] fields = ['ftp']

View File

@@ -25,10 +25,59 @@
</p> </p>
<p> <p>
If you do not row with a power meter on the water, the FTP on If you do not row with a power meter on the water, the FTP on
water is irrelevant. If you do not know your 20 minute or full water is irrelevant. In that case, please use the same value as
hour full out power value on the water, take 85% of your indoor your FTP. If you do not know your 20 minute or full hour full
rowing value. out power value on the water, take 85% of your indoor rowing
value.
</p> </p>
<p>
Detailed setting of zones is not necessary but can be done on
<a href="/rowers/me/preferences/">this page</a> (Zones &
Fitness, detailed in the left menu).
</p>
</li>
<li class="grid_2">
<table class="listtable shortpadded" width=100%>
<thead>
<tr>
<th>ID&nbsp;</th><th>Zone Name</th><th>Lower Boundary (Watt)&nbsp;</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>{{ user.rower.powerzones.0 }}</td>
<td></td>
</tr>
<tr>
<td>2</td><td>{{ user.rower.powerzones.1 }}</td>
<td>{{ user.rower.pw_ut2 }}</td>
<td>{{ user.rower.pw_ut2|otwslack:user }}</td>
</tr>
<tr>
<td>3</td><td>{{ user.rower.powerzones.2 }}</td>
<td>{{ user.rower.pw_ut1 }}</td>
<td>{{ user.rower.pw_ut1|otwslack:user }}</td>
</tr>
<tr>
<td>4</td><td>{{ user.rower.powerzones.3 }}</td>
<td>{{ user.rower.pw_at }}</td>
<td>{{ user.rower.pw_at|otwslack:user }}</td>
</tr>
<tr>
<td>5</td><td>{{ user.rower.powerzones.4 }}</td>
<td>{{ user.rower.pw_tr }}</td>
<td>{{ user.rower.pw_tr|otwslack:user }}</td>
</tr>
<tr>
<td>6</td><td>{{ user.rower.powerzones.5 }}</td>
<td>{{ user.rower.pw_an }}</td>
<td>{{ user.rower.pw_an|otwslack:user }}</td>
</tr>
</tbody>
</table>
</li> </li>
</ul> </ul>