-
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.
Merge pull request #1121 from bcgov/feature/ALCS-1121
Add Email Template for Covenants
- Loading branch information
Showing
5 changed files
with
89 additions
and
27 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
50 changes: 50 additions & 0 deletions
50
services/templates/emails/submitted-to-alc/cove-applicant.template.ts
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,50 @@ | ||
import { MJMLParseResults } from 'mjml-core'; | ||
import { StatusUpdateEmail } from '../../../apps/alcs/src/providers/email/status-email.service'; | ||
import { EmailTemplateService } from '../../../libs/common/src/email-template-service/email-template.service'; | ||
import { header, footer, notificationOnly, portalButton } from '../partials'; | ||
|
||
const template = `<mjml> | ||
<mj-head> | ||
<mj-style> | ||
.line-height div { | ||
line-height: 24px !important; | ||
} | ||
.align-left { | ||
float: left !important; | ||
} | ||
</mj-style> | ||
</mj-head> | ||
<mj-body width="600px"> | ||
${header} | ||
<mj-section background-color="white" padding="48px 0px 48px 0px"> | ||
<mj-column width="600px" css-class='line-height'> | ||
<mj-text font-size='16px'> | ||
This email is to acknowledge that the Agricultural Land Commission (ALC) is in receipt of the above noted <b>{{ childType }}</b> application. Please refer to the ALC Application ID in all future correspondence with this office. A copy of this application has been forwarded to the <b>{{ governmentName }}</b> for information purposes. | ||
</mj-text> | ||
<mj-text font-size='16px'> | ||
There is no application fee associated with registering a Restrictive Covenant. | ||
</mj-text> | ||
<mj-text font-size='16px'> | ||
If you are an agent acting on behalf of the applicant(s) / landowner(s), it is your responsibility to advise them of this, and any future, correspondence. | ||
</mj-text> | ||
<mj-text font-size='16px'> | ||
Please log into the ALC Portal for further updates on the application as it progresses. | ||
</mj-text> | ||
${notificationOnly} | ||
</mj-column> | ||
</mj-section> | ||
${portalButton} | ||
${footer} | ||
</mj-body> | ||
</mjml> | ||
`; | ||
|
||
export const generateSUBGCoveApplicantHtml = ( | ||
data: StatusUpdateEmail, | ||
): MJMLParseResults => { | ||
return new EmailTemplateService().generateEmailBase(template, data); | ||
}; |
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