- Capture previous version of event pre-overwrite for use in notification hooks
- Use previous version of event in email hooks to determine added/deleted/updated email type
This commit is contained in:
@@ -477,7 +477,7 @@ DEFAULT_CONFIG_SCHEMA: types.CONFIG_SCHEMA = OrderedDict([
|
||||
"value": "False",
|
||||
"help": "Send one email to all attendees, versus one email per attendee",
|
||||
"type": bool}),
|
||||
("added_template", {
|
||||
("new_or_added_to_event_template", {
|
||||
"value": """Hello $attendee_name,
|
||||
|
||||
You have been added as an attendee to the following calendar event.
|
||||
@@ -487,20 +487,31 @@ You have been added as an attendee to the following calendar event.
|
||||
$event_location
|
||||
|
||||
This is an automated message. Please do not reply.""",
|
||||
"help": "Template for the email sent when an event is added or updated. Select placeholder words prefixed with $ will be replaced",
|
||||
"help": "Template for the email sent when an event is created or attendee is added. Select placeholder words prefixed with $ will be replaced",
|
||||
"type": str}),
|
||||
("removed_template", {
|
||||
("deleted_or_removed_from_event_template", {
|
||||
"value": """Hello $attendee_name,
|
||||
|
||||
You have been removed as an attendee from the following calendar event.
|
||||
The following event has been deleted.
|
||||
|
||||
$event_title
|
||||
$event_start_time - $event_end_time
|
||||
$event_location
|
||||
|
||||
This is an automated message. Please do not reply.""",
|
||||
"help": "Template for the email sent when an event is deleted. Select placeholder words prefixed with $ will be replaced",
|
||||
"help": "Template for the email sent when an event is deleted or attendee is removed. Select placeholder words prefixed with $ will be replaced",
|
||||
"type": str}),
|
||||
("updated_event_template", {
|
||||
"value": """Hello $attendee_name,
|
||||
The following event has been updated.
|
||||
$event_title
|
||||
$event_start_time - $event_end_time
|
||||
$event_location
|
||||
|
||||
This is an automated message. Please do not reply.""",
|
||||
"help": "Template for the email sent when an event is updated. Select placeholder words prefixed with $ will be replaced",
|
||||
"type": str
|
||||
})
|
||||
])),
|
||||
("web", OrderedDict([
|
||||
("type", {
|
||||
|
||||
Reference in New Issue
Block a user