Private
Public Access
1
0

adding calendar to all team members sending funct

This commit is contained in:
Sander Roosendaal
2019-07-31 14:12:06 +02:00
parent bdeed4c277
commit fca58e740f
8 changed files with 141 additions and 3 deletions

View File

@@ -6,9 +6,9 @@
{% block main %}
{% if theteam %}
<h1>Coach Overview. Team {{ theteam.name }}</h1>
<h1>Group Overview. Team {{ theteam.name }}</h1>
{% else %}
<h1>Coach Overview</h1>
<h1>Group Overview</h1>
{% endif %}
<ul class="main-content">
@@ -83,6 +83,17 @@
{% endfor %}
</tbody>
</table>
<p>
<a href="/rowers/sessions/sendcalendar/user/{{ rower.user.id }}/?when={{ timeperiod }}">
Get Calendar File</a>
</p>
{% if rower|is_coach:rowers %}
<p>
<a href="/rowers/sessions/coach/sendcalendar/user/{{ rower.user.id }}/?when={{ timeperiod }}">
Send Calendar File to all rowers
</a>
</p>
{% endif %}
</li>
{% if unmatchedworkouts %}