-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SW-4258 Email notifications when a user schedules/reschedules an obse…
…rvation (#1383) - Email notification is sent to the Terraformation Contact *only*, if one exists - There is no headline or web link in this notification - There are no in-app notifications
- Loading branch information
1 parent
16beff4
commit d62b389
Showing
15 changed files
with
337 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
26 changes: 26 additions & 0 deletions
26
src/main/resources/templates/email/observation/rescheduled/body.ftlh.mjml
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,26 @@ | ||
<!-- <#-- @ftlvariable name="" type="com.terraformation.backend.email.model.ObservationRescheduled" --> --> | ||
<!-- <#setting date_format="full"> --> | ||
<mjml> | ||
<mj-include path="../../head.ftlh.mjml"/> | ||
|
||
<mj-body> | ||
<mj-include path="../../logo.ftlh.mjml"/> | ||
|
||
<mj-section padding="0px"> | ||
<mj-column mj-class="body-wrapper"> | ||
<mj-text mj-class="text-body03-leading"> | ||
${strings("notification.observation.rescheduled.email.body.1", plantingSiteName)} | ||
</mj-text> | ||
<mj-text mj-class="text-body03"> | ||
${strings("notification.observation.rescheduled.email.body.2", originalStartDateString, originalEndDateString)} | ||
</mj-text> | ||
<mj-text mj-class="text-body03"> | ||
${strings("notification.observation.rescheduled.email.body.3", newStartDateString, newEndDateString)} | ||
</mj-text> | ||
<mj-include path="../../manageSettings.ftlh.mjml"/> | ||
</mj-column> | ||
</mj-section> | ||
|
||
<mj-include path="../../footer.ftlh.mjml"/> | ||
</mj-body> | ||
</mjml> |
10 changes: 10 additions & 0 deletions
10
src/main/resources/templates/email/observation/rescheduled/body.txt.ftl
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,10 @@ | ||
<#-- @ftlvariable name="" type="com.terraformation.backend.email.model.ObservationRescheduled" --> | ||
${strings("notification.observation.rescheduled.email.body.1", plantingSiteName)} | ||
|
||
${strings("notification.observation.rescheduled.email.body.2", originalStartDateString, originalEndDateString)} | ||
|
||
${strings("notification.observation.rescheduled.email.body.3", newStartDateString, newEndDateString)} | ||
|
||
------------------------------ | ||
|
||
${strings("notification.email.text.footer", manageSettingsUrl)} |
2 changes: 2 additions & 0 deletions
2
src/main/resources/templates/email/observation/rescheduled/subject.ftl
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,2 @@ | ||
<#-- @ftlvariable name="" type="com.terraformation.backend.email.model.ObservationRescheduled" --> | ||
${strings("notification.observation.rescheduled.email.subject", organizationName, plantingSiteName)} |
20 changes: 20 additions & 0 deletions
20
src/main/resources/templates/email/observation/scheduled/body.ftlh.mjml
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,20 @@ | ||
<!-- <#-- @ftlvariable name="" type="com.terraformation.backend.email.model.ObservationScheduled" --> --> | ||
<!-- <#setting date_format="full"> --> | ||
<mjml> | ||
<mj-include path="../../head.ftlh.mjml"/> | ||
|
||
<mj-body> | ||
<mj-include path="../../logo.ftlh.mjml"/> | ||
|
||
<mj-section padding="0px"> | ||
<mj-column mj-class="body-wrapper"> | ||
<mj-text mj-class="text-body03-leading"> | ||
${strings("notification.observation.scheduled.email.body.1", plantingSiteName, startDateString, endDateString)} | ||
</mj-text> | ||
<mj-include path="../../manageSettings.ftlh.mjml"/> | ||
</mj-column> | ||
</mj-section> | ||
|
||
<mj-include path="../../footer.ftlh.mjml"/> | ||
</mj-body> | ||
</mjml> |
6 changes: 6 additions & 0 deletions
6
src/main/resources/templates/email/observation/scheduled/body.txt.ftl
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,6 @@ | ||
<#-- @ftlvariable name="" type="com.terraformation.backend.email.model.ObservationScheduled" --> | ||
${strings("notification.observation.scheduled.email.body.1", plantingSiteName, startDateString, endDateString)} | ||
|
||
------------------------------ | ||
|
||
${strings("notification.email.text.footer", manageSettingsUrl)} |
2 changes: 2 additions & 0 deletions
2
src/main/resources/templates/email/observation/scheduled/subject.ftl
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,2 @@ | ||
<#-- @ftlvariable name="" type="com.terraformation.backend.email.model.ObservationScheduled" --> | ||
${strings("notification.observation.scheduled.email.subject", organizationName, plantingSiteName)} |
Oops, something went wrong.