Private
Public Access
1
0

defined PowerZonesForm

This commit is contained in:
Sander Roosendaal
2017-01-25 15:37:26 +01:00
parent e4c2270306
commit 5eed5d05a8
3 changed files with 120 additions and 22 deletions

View File

@@ -24,29 +24,35 @@
<div class="grid_6 omega">
<p>
<h2>Power Bands</h2>
<table width="70%" class="listtable">
<thead>
<tr>
<th>Band</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>UT2 Power</td><td>{{ rower.pw_ut2 }} Watt</td>
</tr><tr>
<td>UT1 Power</td><td>{{ rower.pw_ut1 }} Watt</td>
</tr><tr>
<td>AT Power</td><td>{{ rower.pw_at }} Watt</td>
</tr><tr>
<td>TR Power</td><td>{{ rower.pw_tr }} Watt</td>
</tr><tr>
<td>AN Power</td><td>{{ rower.pw_an }} Watt</td>
</tr>
</table>
</p>
<form enctype="multipart/form-data" action="" method="post">
{% if powerzonesform.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<table>
<thead>
<tr>
<th>ID</th><th>Zone Name</th><th>Lower Boundary</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td><td>{{ powerzonesform.ut2name }}</td>
<td></td>
</tr>
</tbody>
</table>
{% csrf_token %}
<div class="grid_2 prefix_2 suffix_2">
<input class="button green" type="submit" value="Save">
</div>
</form>
<p>
<h2>Functional Threshold Power</h2>
<p>Use this form to quickly change your zones based on the power of a
recent
full out 60 minutes effort. It will update all zones defined above.</p>
<form enctype="multipart/form-data" action="" method="post">
<table>
{{ powerform.as_table }}