73 lines
1.6 KiB
HTML
73 lines
1.6 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>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">
|
|
<div class="grid_2 suffix_4 alpha">
|
|
<a class="button gray small" href="/rowers/me/favoritecharts">Manage Favorite Charts</a>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|