Private
Public Access
1
0

email from group page

This commit is contained in:
Sander Roosendaal
2019-07-31 13:17:52 +02:00
parent edc47786f2
commit bdeed4c277
8 changed files with 96 additions and 16 deletions

View File

@@ -72,6 +72,19 @@
</p>
{% endif %}
</li>
<li class="grid_2">
{% if team.manager == user %}
<h2>Message</h2>
<p>Use this form to send a message to all team members by email. </p>
<form enctype="multipart/form-date" action="" method="post">
<table>
{{ groupmessageform.as_table }}
</table>
{% csrf_token %}
<input type="submit" value="Send">
</form>
{% endif %}
</li>
</ul>

View File

@@ -0,0 +1,14 @@
{% extends "emailbase.html" %}
{% block body %}
<p>Dear <strong>{{ first_name }}</strong>,</p>
<p>
Here is a message from {{ managername }}, the team manager of rowsandall.com team {{ teamname }}.
</p>
<p>
<code>
{{ message }}
</code>
</p>
{% endblock %}