Private
Public Access
1
0

added data to email body (alerts)

This commit is contained in:
Sander Roosendaal
2019-09-27 12:00:06 +02:00
parent 94686f020d
commit be231c7563
4 changed files with 8 additions and 4 deletions

View File

@@ -809,6 +809,7 @@ def handle_send_email_alert(
except KeyError:
pass
try:
report['Median'] = sigdig(stats['median'])
except KeyError:
@@ -831,6 +832,8 @@ def handle_send_email_alert(
'report':report,
'first_name':userfirstname,
'last_name':userlastname,
'startdate':stats['startdate'],
'enddate':stats['enddate'],
'siteurl':siteurl,
'rowerfirstname':rowerfirstname,
'alertname':alertname,

View File

@@ -4,7 +4,8 @@
<p>Dear <strong>{{ first_name }}</strong>,</p>
<p>
Here is the report for your alert <strong>{{ alertname }}</strong> on <a href="{{ siteurl }}">rowsandall.com</a>. This is a report for your athlete {{ rowerfirstname }}.
Here is the report for your alert <strong>{{ alertname }}</strong> on <a href="{{ siteurl }}">rowsandall.com</a>. This is a report for your athlete {{ rowerfirstname }}, covering the period from
{{ startdate }} to {{ enddate }}.
</p>
{% for text in othertexts %}

View File

@@ -123,8 +123,8 @@
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_2 prefix_2 alpha">
<input class="button green grid_2" type="submit" value="Save">
<div id="formbutton">
<input type="submit" value="Save">
</div>
</form>
</div>

View File

@@ -20,7 +20,7 @@ The auto import and export settings only work on <a href="/rowers/paidplans/">a
{{ form.as_table }}
</table>
{% csrf_token %}
<input class="button green" type="submit" value="Save">
<input type="submit" value="Save">
</form>
</p>
<p>Click on one of the icons below to connect to the service of your