Private
Public Access
1
0

Process team invites

This commit is contained in:
Sander Roosendaal
2017-02-09 20:45:10 +01:00
parent 32cadef2e5
commit e60320143a
6 changed files with 134 additions and 18 deletions

View File

@@ -38,9 +38,31 @@
</div>
<div class="grid_6 omega">
{% if invites %}
<p>
<h2>Invitations</h2>
<table width="70%" class="listtable">
<thead>
<tr>
<th>Name</th>
<th>Manager</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for i in invites %}
<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><a class="button small green" href="/rowers/me/invitation/{{ i.code }}">Accept</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
</div>
@@ -53,7 +75,7 @@
<thead>
<tr>
<th>Name</th>
<th>&nbsp;</th>
<th>Manager</th>
</tr>
</thead>
<tbody>
@@ -72,10 +94,38 @@
</tbody>
</table>
{% endif %}
<div class="grid_2 suffix_2 prefix_2 alpha">
<div class="grid_2 suffix_4 alpha">
<a class="button green" href="/rowers/team/create">New Team</a>
</div>
</div>
<div class="grid_6 omega">
{% if otherteams %}
<h2>Other Teams</h2>
<table width="70%" class="listtable">
<thead>
<tr>
<th>Name</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for team in otherteams %}
<tr>
<td>
<a href="/rowers/team/{{ team.id }}/">{{ team.name }}</a>
</td>
<td>
{{ team.manager.first_name }} {{ team.manager.last_name }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
</div>
{% endif %}