-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whenever a host adds or removes a cohost to the event, email notification are sent to a) host and b) the added/removed cohost
- Loading branch information
1 parent
1bb6ca0
commit 1135c7d
Showing
4 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
physionet-django/events/templates/events/email/event_cohost_cohost_status_change.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{% load i18n %}{% autoescape off %}{% filter wordwrap:70 %} | ||
Dear {{ name }}, | ||
{% if status == 'Make cohost' %} | ||
You have been added as Cohost to the Event : {{ event_title }}. | ||
|
||
You can now manage the event participants from your events dashboard. | ||
{% elif status == 'Remove cohost' %} | ||
Your Cohost access has been removed from the Event : {{ event_title }}. | ||
{% endif %} | ||
You can view further information about the event using the following link: | ||
{{ url_prefix }}{{ event_url }} | ||
|
||
Regards | ||
The {{ SITE_NAME }} Team | ||
{% endfilter %}{% endautoescape %} |
14 changes: 14 additions & 0 deletions
14
physionet-django/events/templates/events/email/event_host_cohost_status_change.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% load i18n %}{% autoescape off %}{% filter wordwrap:70 %} | ||
Dear {{ host_name }}, | ||
{% if status == 'Make cohost' %} | ||
You have provided {{ cohost_name }} Cohost access to the Event : {{ event_title }}. | ||
{% elif status == 'Remove cohost' %} | ||
You have removed {{ cohost_name }}'s Cohost access from the Event : {{ event_title }}. | ||
{% endif %} | ||
If this was done by mistake, you can change the cohost status by visiting the events dashboard. | ||
|
||
{{ url_prefix }}/events/ | ||
|
||
Regards | ||
The {{ SITE_NAME }} Team | ||
{% endfilter %}{% endautoescape %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters