added data to email body (alerts)
This commit is contained in:
@@ -809,6 +809,7 @@ def handle_send_email_alert(
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
report['Median'] = sigdig(stats['median'])
|
report['Median'] = sigdig(stats['median'])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@@ -831,6 +832,8 @@ def handle_send_email_alert(
|
|||||||
'report':report,
|
'report':report,
|
||||||
'first_name':userfirstname,
|
'first_name':userfirstname,
|
||||||
'last_name':userlastname,
|
'last_name':userlastname,
|
||||||
|
'startdate':stats['startdate'],
|
||||||
|
'enddate':stats['enddate'],
|
||||||
'siteurl':siteurl,
|
'siteurl':siteurl,
|
||||||
'rowerfirstname':rowerfirstname,
|
'rowerfirstname':rowerfirstname,
|
||||||
'alertname':alertname,
|
'alertname':alertname,
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
<p>Dear <strong>{{ first_name }}</strong>,</p>
|
<p>Dear <strong>{{ first_name }}</strong>,</p>
|
||||||
|
|
||||||
<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>
|
</p>
|
||||||
|
|
||||||
{% for text in othertexts %}
|
{% for text in othertexts %}
|
||||||
|
|||||||
@@ -123,8 +123,8 @@
|
|||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div id="formbutton" class="grid_2 prefix_2 alpha">
|
<div id="formbutton">
|
||||||
<input class="button green grid_2" type="submit" value="Save">
|
<input type="submit" value="Save">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ The auto import and export settings only work on <a href="/rowers/paidplans/">a
|
|||||||
{{ form.as_table }}
|
{{ form.as_table }}
|
||||||
</table>
|
</table>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input class="button green" type="submit" value="Save">
|
<input type="submit" value="Save">
|
||||||
</form>
|
</form>
|
||||||
</p>
|
</p>
|
||||||
<p>Click on one of the icons below to connect to the service of your
|
<p>Click on one of the icons below to connect to the service of your
|
||||||
|
|||||||
Reference in New Issue
Block a user