Private
Public Access
1
0

profile menu and export settings

This commit is contained in:
Sander Roosendaal
2018-10-10 15:54:32 +02:00
parent 401fc7c82a
commit 58cdc1edc2
8 changed files with 225 additions and 110 deletions

View File

@@ -1,46 +1,39 @@
{% extends "base.html" %}
{% extends "newbase.html" %}
{% block title %}Teams {% endblock %}
{% block content %}
<div class="grid_12 alpha">
<div class="grid_6 alpha">
<p>
<h2>My Teams</h2>
{% if teams %}
<table width="70%" class="listtable">
<thead>
<tr>
<th>Name</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% block main %}
<ul class="main-content">
{% if teams %}
<li >
<h2>My Teams</h2>
<table width="100%" class="listtable">
<thead>
<tr>
<th>Name</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
{% for team in teams %}
<tr>
<td>
<a href="/rowers/team/{{ team.id }}/">{{ team.name }}</a>
<a href="/rowers/team/{{ team.id }}/">{{ team.name }}</a>
</td>
<td>
<div class="grid_1">
<a class="button small red" href="/rowers/team/{{ team.id }}/leaveconfirm">Leave</a>
</div>
<a class="button small red" href="/rowers/team/{{ team.id }}/leaveconfirm">Leave</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p>You are not a member of any team.</p>
{% endif %}
</p>
</table>
</li>
{% endif %}
</div>
<div class="grid_6 omega">
{% if otherteams %}
{% if otherteams %}
<li >
<h2>Other Teams</h2>
<table width="70%" class="listtable">
<table width="100%" class="listtable">
<thead>
<tr>
<th>Name</th>
@@ -60,21 +53,16 @@
{% endfor %}
</tbody>
</table>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
</div>
</li>
{% endif %}
<div class="grid_12 alpha">
<div class="grid_6 alpha">
{% if user.rower.rowerplan == 'coach' %}
{% if user.rower.rowerplan == 'coach' %}
<li >
<h2>Teams I manage</h2>
<p>Number of members: {{ clubsize }}</p>
<p>Maximum club size: {{ max_clubsize }}</p>
{% if myteams %}
<table width="70%" class="listtable">
<table width="100%" class="listtable">
<thead>
<tr>
<th>Name</th>
@@ -88,31 +76,25 @@
<a href="/rowers/team/{{ team.id }}/">{{ team.name }}</a>
</td>
<td>
<div class="grid_1">
<a class="button small red" href="/rowers/team/{{ team.id }}/deleteconfirm">Delete</a>
</div>
<a class="button small red" href="/rowers/team/{{ team.id }}/deleteconfirm">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<div class="grid_2 suffix_4 alpha">
<a class="button green" href="/rowers/team/create">New Team</a>
</div>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
<div class="grid_6 omega">
{% if invites or requests or myrequests or myinvites %}
<a class="button green" href="/rowers/team/create">New Team</a>
</li>
{% endif %}
{% if invites or requests or myrequests or myinvites %}
<li >
<h2>Invitations and Requests</h2>
<p>This section lists open invites to join a team. By accepting
a team invite, you are agreeing with the sharing
of personal data between team members and coaches according to
our <a href="/rowers/legal">privacy policy</a>.
</p>
<p>As a team manager, by accepting a team invite, you are agreeing
with <a href="/rowers/legal">privacy policy</a> regarding teams and
personal data owned by team members.</p>
@@ -177,8 +159,7 @@
{% endfor %}
</tbody>
</table>
<h3>Manual code redeem</h3>
<div class="grid_4 alpha">
<h3>Manual code redeem</h3>
<form enctype="multipart/form-data" action="{{ formloc }}" method="post">
{% if form.errors %}
<p style\"color: red;">
@@ -187,20 +168,17 @@
{% endif %}
{% csrf_token %}
<table>
{{ form.as_table }}
{{ form.as_table }}
</table>
</div>
<div id="formbutton" class="grid_1 suffix_1 omega">
<input class="button green" type="submit" value="Submit">
</div>
</form>
</p>
{% else %}
<p>&nbsp;</p>
{% endif %}
</div>
</div>
</li>
</ul>
{% endblock %}
{% block sidebar %}
{% include 'menu_teams.html' %}
{% endblock %}