45 lines
1.3 KiB
HTML
45 lines
1.3 KiB
HTML
{% extends "basebase.html" %}
|
|
{% block filters %}
|
|
{% load rowerfilters %}
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block teams %}
|
|
{% if user.is_authenticated and user|has_teams %}
|
|
<div class="grid_1 alpha dropdown">
|
|
<button class="grid_1 alpha button gray small dropbtn">
|
|
Teams
|
|
</button>
|
|
<div class="dropdown-content">
|
|
<a class="button gray small" href="/rowers/me/teams/">Manage Teams</a>
|
|
{% if user|is_manager %}
|
|
<a class="button gray small" href="/rowers/workout/upload/team/">Upload Team Member Workout</a>
|
|
{% endif %}
|
|
{% for t in user|user_teams %}
|
|
<a class="button gray small" href="/rowers/list-workouts/team/{{ t.id }}/">{{ t.name }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<span class="tooltiptext">See recent workouts for your team</span>
|
|
{% elif user.is_authenticated and user.rower.team.all %}
|
|
<div class="grid_1 alpha dropdown">
|
|
<button class="grid_1 alpha button gray small dropbtn">
|
|
Teams
|
|
</button>
|
|
<div class="dropdown-content">
|
|
{% for t in user.rower.team.all %}
|
|
<a class="button gray small" href="/rowers/list-workouts/team/{{ t.id }}/">{{ t.name }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<span class="tooltiptext">See recent workouts for your team</span>
|
|
{% else %}
|
|
<p> </p>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% endblock %}
|