Private
Public Access
1
0

extended templates

This commit is contained in:
Sander Roosendaal
2017-04-22 12:32:13 +02:00
parent d963b8f5b2
commit eae2b8ac4b
8 changed files with 279 additions and 435 deletions

View File

@@ -0,0 +1,26 @@
{% extends "basebase.html" %}
{% block filters %}
{% load rowerfilters %}
{% endblock %}
{% block teams %}
{% if 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>&nbsp;</p>
{% endif %}
{% endblock %}
{% block content %}
{% endblock %}