Private
Public Access
1
0

edit and create team sessions

This commit is contained in:
Sander Roosendaal
2018-02-09 16:40:47 +01:00
parent c22740002c
commit cd134a40fd
12 changed files with 612 additions and 23 deletions

View File

@@ -39,15 +39,10 @@
</div>
</div>
{% if user.is_authenticated and user|is_manager %}
<div class="grid_2 dropdown">
<button class="grid_2 alpha button green small dropbtn">
Change Rower
</button>
<div class="dropdown-content">
{% for member in user|team_rowers %}
<a class="button green small" href="/rowers/sessions/create/{{ timeperiod }}/rower/{{ member.id }}">{{ member.user.first_name }} {{ member.user.last_name }}</a>
{% endfor %}
</div>
<div class="grid_2">
<a class="button green small alpha" href="/rowers/sessions/teamedit/{{ thesession.id }}/{{ timeperiod}}">
Assign to my Teams
</a>
</div>
{% endif %}
</div>