Private
Public Access
1
0
Files
rowsandall/rowers/templates/rower_form.html
2017-01-24 15:36:17 +01:00

99 lines
2.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Change Rower {% endblock %}
{% block content %}
{% if form.errors %}
<p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<div class="grid_6 alpha">
<h2>Heart Rate Bands</h2>
<form enctype="multipart/form-data" action="" method="post">
<table>
{{ form.as_table }}
</table>
{% csrf_token %}
<div class="grid_2 prefix_2 suffix_2">
<input class="button green" type="submit" value="Save">
</form>
</div>
</div>
<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>
<p>
<h2>Functional Threshold Power</h2>
<form enctype="multipart/form-data" action="" method="post">
<table>
{{ powerform.as_table }}
</table>
{% csrf_token %}
<div class="grid_2 prefix_2 suffix_2">
<input class="button green" type="submit" value="Save">
</form>
</div>
</p>
{% if grants %}
<p>
<h2>Applications</h2>
<table width="100%">
<thead>
<tr>
<th>Application</th>
<th>Scope</th>
<th>Revoke</th>
</tr>
</thead>
<tbody>
{% for grant in grants %}
<tr>
<td>{{ grant.application }}</td>
<td>{{ grant.scope }}</td>
<td>
<a class="button red small" href="/rowers/me/revokeapp/{{ grant.application.id }}">Revoke</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</p>
{% endif %}
</div>
<div class="grid_6 prefix_6 alpha">
<p>
<h2>Favorite Charts</h2>
<div class="grid_2 suffix_4 alpha">
<a class="button gray small" href="/rowers/me/favoritecharts">Manage Favorite Charts</a>
</div>
</p>
</div>
{% endblock %}