Private
Public Access
1
0

bugfix teamrequests

This commit is contained in:
Sander Roosendaal
2017-02-10 14:55:15 +01:00
parent c578f350ce
commit 90a177b06c
4 changed files with 36 additions and 4 deletions

View File

@@ -38,7 +38,7 @@
</div>
<div class="grid_6 omega">
{% if invites or requests or myrequests %}
{% if invites or requests or myrequests or myinvites %}
<p>
<h2>Invitations and Requests</h2>
<table width="90%" class="listtable">
@@ -77,13 +77,28 @@
<tr>
<td><a href="/rowers/team/{{ i.team.id }}">{{ i.team.name }}</a></td>
<td>{{ i.team.manager.first_name }} {{ i.team.manager.last_name }}</td>
<td>{{ user.first_name }} {{ user.last_name }}</td>
<td>{{ i.user.first_name }} {{ i.user.last_name }}</td>
<td><a class="button small green" href="/rowers/me/request/{{ i.code }}">Accept</a>
<td>
<a class="button small red" href="/rowers/me/request/{{ i.id }}/reject">Reject</a>
</td>
</tr>
{% endfor %}
{% for i in myinvites %}
<tr>
<td><a href="/rowers/team/{{ i.team.id }}">{{ i.team.name }}</a></td>
<td>{{ i.team.manager.first_name }} {{ i.team.manager.last_name }}</td>
{% if i.user %}
<td>{{ i.user.first_name }} {{ i.user.last_name }}</td>
{% else %}
<td>{{ i.email }}</td>
{% endif %}
<td>&nbsp;
<td>
<a class="button small red" href="/rowers/me/invitation/{{ i.id }}/revoke">Revoke</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</p>