added data to email body (alerts)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user