Private
Public Access
1
0

TP fix maybe, and form to message racers

This commit is contained in:
Sander Roosendaal
2020-06-06 17:43:16 +02:00
parent 55ad7ce2d9
commit 5aa6d89891
10 changed files with 174 additions and 4 deletions

View File

@@ -0,0 +1,38 @@
{% extends "newbase.html" %}
{% load staticfiles %}
{% load rowerfilters %}
{% load tz %}
{% block scripts %}
{% include "monitorjobs.html" %}
{% endblock %}
{% block title %}Comment Session {% endblock %}
{% block main %}
<h1>Messages {{ plannedession.name }}</h1>
<p>With this form, you can send an email message to selected Challenge participants</p>
<ul class="main-content">
<li class="grid_2">
<form enctype="multipart/form-data" method="post">
<table width=100%>
{{ userform.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Send">
</form>
</li>
</ul>
{% endblock %}
{% block sidebar %}
{% if 'racing' in active %}
{% include 'menu_racing.html' %}
{% else %}
{% include 'menu_plan.html' %}
{% endif %}
{% endblock %}

View File

@@ -383,14 +383,21 @@
{% endif %}
</p>
{% if race.manager == request.user %}
<p>
<a href="/rowers/virtualevent/{{ race.id }}/download"
title="Download Results">Download Results</a>
</p>
{% endif %}
{% else %}
<p>
No results yet
</p>
{% endif %}
{% if race.manager == request.user %}
<p>
<a href="/rowers/sessions/{{ race.id }}/message/">Message to participant(s)</a>
</p>
{% endif %}
</div>
</li>
{% if form %}

View File

@@ -0,0 +1,10 @@
{% extends "emailbase.html" %}
{% block body %}
<p>Dear <strong>{{ rowername }}</strong>,</p>
<p>
{{ message }}
</p>
{% endblock %}