Private
Public Access
1
0

Revoke button

This commit is contained in:
Sander Roosendaal
2017-01-04 10:33:56 +01:00
parent b0d77bbabf
commit 3e833fd217
3 changed files with 64 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
</p>
{% endif %}
<div class="grid_6 alpha">
<h1>Heart Rate Bands</h1>
<h2>Heart Rate Bands</h2>
<form enctype="multipart/form-data" action="" method="post">
<table>
@@ -22,8 +22,8 @@
</div>
</div>
<div class="grid_6 omega">
<h1>Functional Threshold Power</h1>
<p>
<h2>Functional Threshold Power</h2>
<form enctype="multipart/form-data" action="" method="post">
<table>
{{ powerform.as_table }}
@@ -34,6 +34,31 @@
</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>