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

@@ -4,10 +4,14 @@
<p>Dear <strong>{{ first_name }}</strong>,</p>
<p>
Please find attached the requested ICS Calendar file. You can import
Please find attached the ICS Calendar file for your training sessions. You can import
this file to your calendar app.
</p>
<p>
You can see the training plan here: <a href="{{ siteurl }}{{ url }}">{{ siteurl }}{{ url }}</a>
</p>
<p>
Best Regards, the Rowsandall Team
</p>

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 %}