TP fix maybe, and form to message racers
This commit is contained in:
38
rowers/templates/plannedsession_message.html
Normal file
38
rowers/templates/plannedsession_message.html
Normal 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 %}
|
||||
@@ -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 %}
|
||||
|
||||
10
rowers/templates/virtualracemessage.html
Normal file
10
rowers/templates/virtualracemessage.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "emailbase.html" %}
|
||||
{% block body %}
|
||||
<p>Dear <strong>{{ rowername }}</strong>,</p>
|
||||
|
||||
<p>
|
||||
{{ message }}
|
||||
</p>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user