-
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.
Removed string based email triggers - now using boolean based on data…
…base status
- Loading branch information
1 parent
879a047
commit a236062
Showing
3 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{% load i18n %}{% autoescape off %}{% filter wordwrap:70 %} | ||
Dear {{ name }}, | ||
{% if status == 'Make cohost' %} | ||
{% if status == True %} | ||
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' %} | ||
{% elif status == False %} | ||
Your Cohost access has been removed from the Event : {{ event_title }}. | ||
{% endif %} | ||
You can view further information about the event using the following link: | ||
{{ event_url }} | ||
|
||
Regards | ||
The {{ SITE_NAME }} Team | ||
{% endfilter %}{% endautoescape %} | ||
{% endfilter %}{% endautoescape %} |
7 changes: 4 additions & 3 deletions
7
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
{% load i18n %}{% autoescape off %}{% filter wordwrap:70 %} | ||
Dear {{ host_name }}, | ||
{% if status == 'Make cohost' %} | ||
|
||
{% if status == True %} | ||
You have provided {{ cohost_name }} Cohost access to the Event : {{ event_title }}. | ||
{% elif status == 'Remove cohost' %} | ||
{% elif status == False %} | ||
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. | ||
{{ event_url }} | ||
|
||
Regards | ||
The {{ SITE_NAME }} Team | ||
{% endfilter %}{% endautoescape %} | ||
{% 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