From d9070dc0f515c6d827f249665fdad1de907b296d Mon Sep 17 00:00:00 2001 From: Amaksss Date: Fri, 28 Feb 2025 22:02:07 +0100 Subject: [PATCH] added base template to all handlebars email templates --- .../hng-templates/Account-Deactivation.hbs | 129 +-------------- .../Account-Inactivity-Deactivation.hbs | 132 +--------------- .../email/hng-templates/Activate-Account.hbs | 132 +--------------- .../email/hng-templates/Activation-Link.hbs | 130 +--------------- .../email/hng-templates/Active-Account.hbs | 132 +--------------- .../email/hng-templates/Email-Complete.hbs | 129 +-------------- .../hng-templates/Email-Verification.hbs | 81 +--------- src/modules/email/hng-templates/Invoice.hbs | 135 +--------------- .../hng-templates/New-Activation-Link.hbs | 129 +-------------- .../New-Feature-Announcement.hbs | 139 +---------------- .../email/hng-templates/Newsletter.hbs | 143 +---------------- .../Password-Reset-Complete-Template.hbs | 129 +-------------- .../email/hng-templates/Payment-receipt.hbs | 147 +----------------- .../hng-templates/Reset-Password-Template.hbs | 129 +-------------- ...Subscription-Cancellation-Confirmation.hbs | 135 +--------------- .../Subscription-Confirmation.hbs | 140 +---------------- .../Subscription-Renewal-Disabled.hbs | 136 +--------------- .../Subscription-Renewal-Failed.hbs | 133 +--------------- .../Subscription-Renewal-Reminder.hbs | 140 +---------------- .../email/hng-templates/Welcome-Template.hbs | 127 +-------------- src/modules/email/hng-templates/base.hbs | 32 ++++ .../email/hng-templates/contact-inquiry.hbs | 74 +++------ src/modules/email/hng-templates/login-otp.hbs | 32 ++-- .../hng-templates/waitlist-confirmation.hbs | 29 +--- 24 files changed, 113 insertions(+), 2681 deletions(-) create mode 100644 src/modules/email/hng-templates/base.hbs diff --git a/src/modules/email/hng-templates/Account-Deactivation.hbs b/src/modules/email/hng-templates/Account-Deactivation.hbs index 57a87a07d..70e3fc9e8 100644 --- a/src/modules/email/hng-templates/Account-Deactivation.hbs +++ b/src/modules/email/hng-templates/Account-Deactivation.hbs @@ -1,51 +1,5 @@ - - - - - Account Deactivation In Two Days - - - - -
-

- - - - - - - Boilerplate -

-
+{{#> body}}
@@ -136,83 +90,4 @@
- - - - \ No newline at end of file + {{/body} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Account-Inactivity-Deactivation.hbs b/src/modules/email/hng-templates/Account-Inactivity-Deactivation.hbs index a88d04197..6c7fa9f48 100644 --- a/src/modules/email/hng-templates/Account-Inactivity-Deactivation.hbs +++ b/src/modules/email/hng-templates/Account-Inactivity-Deactivation.hbs @@ -1,54 +1,5 @@ - - - - - Account Deactivation Due To Inactivity - - - - -
-

- - - - - - - Boilerplate -

-
+{{#> body}}
@@ -141,83 +92,4 @@
- - - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Activate-Account.hbs b/src/modules/email/hng-templates/Activate-Account.hbs index 5c558449f..6508558f0 100644 --- a/src/modules/email/hng-templates/Activate-Account.hbs +++ b/src/modules/email/hng-templates/Activate-Account.hbs @@ -1,51 +1,5 @@ - - - - - Activate Your Account - - - - -
-

- - - - - - - Boilerplate. -

-
+ + {{#> body}}
@@ -153,84 +107,4 @@
- - - - - \ No newline at end of file + {{/body}} diff --git a/src/modules/email/hng-templates/Activation-Link.hbs b/src/modules/email/hng-templates/Activation-Link.hbs index 21d1250de..fe2a4b6a8 100644 --- a/src/modules/email/hng-templates/Activation-Link.hbs +++ b/src/modules/email/hng-templates/Activation-Link.hbs @@ -1,52 +1,5 @@ - - - - - Activation Link Expired - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -211,83 +164,4 @@
- - - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Active-Account.hbs b/src/modules/email/hng-templates/Active-Account.hbs index 73f28919d..21c801eb5 100644 --- a/src/modules/email/hng-templates/Active-Account.hbs +++ b/src/modules/email/hng-templates/Active-Account.hbs @@ -1,52 +1,5 @@ - - - - - Account Activation - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -1065,84 +1018,5 @@
- - - - - \ No newline at end of file +{{/body}} + \ No newline at end of file diff --git a/src/modules/email/hng-templates/Email-Complete.hbs b/src/modules/email/hng-templates/Email-Complete.hbs index 51f7f6158..b4aa2e378 100644 --- a/src/modules/email/hng-templates/Email-Complete.hbs +++ b/src/modules/email/hng-templates/Email-Complete.hbs @@ -1,51 +1,5 @@ - - - - - Email Confirmed - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -129,83 +83,4 @@
- - - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Email-Verification.hbs b/src/modules/email/hng-templates/Email-Verification.hbs index 0486f1f9e..10fdc57bf 100644 --- a/src/modules/email/hng-templates/Email-Verification.hbs +++ b/src/modules/email/hng-templates/Email-Verification.hbs @@ -97,83 +97,4 @@ - - - - \ No newline at end of file + \ No newline at end of file diff --git a/src/modules/email/hng-templates/Invoice.hbs b/src/modules/email/hng-templates/Invoice.hbs index 4c4157614..7e9607a84 100644 --- a/src/modules/email/hng-templates/Invoice.hbs +++ b/src/modules/email/hng-templates/Invoice.hbs @@ -1,57 +1,4 @@ - - - - - New Activation Link Sent - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -156,82 +103,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/New-Activation-Link.hbs b/src/modules/email/hng-templates/New-Activation-Link.hbs index 265015174..85a680658 100644 --- a/src/modules/email/hng-templates/New-Activation-Link.hbs +++ b/src/modules/email/hng-templates/New-Activation-Link.hbs @@ -1,52 +1,5 @@ - - - - - New Activation Link Sent - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -131,82 +84,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/New-Feature-Announcement.hbs b/src/modules/email/hng-templates/New-Feature-Announcement.hbs index a3dbade37..8349432d2 100644 --- a/src/modules/email/hng-templates/New-Feature-Announcement.hbs +++ b/src/modules/email/hng-templates/New-Feature-Announcement.hbs @@ -1,61 +1,4 @@ - - - - - New Feature Announcement - - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -259,82 +202,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Newsletter.hbs b/src/modules/email/hng-templates/Newsletter.hbs index 70022f7ad..63c593b51 100644 --- a/src/modules/email/hng-templates/Newsletter.hbs +++ b/src/modules/email/hng-templates/Newsletter.hbs @@ -1,65 +1,4 @@ - - - - - Newsletter - - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -605,82 +544,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Password-Reset-Complete-Template.hbs b/src/modules/email/hng-templates/Password-Reset-Complete-Template.hbs index 08fdc1bee..171a189f7 100644 --- a/src/modules/email/hng-templates/Password-Reset-Complete-Template.hbs +++ b/src/modules/email/hng-templates/Password-Reset-Complete-Template.hbs @@ -1,52 +1,5 @@ - - - - - Password Reset Complete - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -107,82 +60,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Payment-receipt.hbs b/src/modules/email/hng-templates/Payment-receipt.hbs index f066dbcce..3d1884a58 100644 --- a/src/modules/email/hng-templates/Payment-receipt.hbs +++ b/src/modules/email/hng-templates/Payment-receipt.hbs @@ -1,69 +1,4 @@ - - - - - Payment receipt - - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -248,82 +183,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Reset-Password-Template.hbs b/src/modules/email/hng-templates/Reset-Password-Template.hbs index 4e3a10b93..02cede65f 100644 --- a/src/modules/email/hng-templates/Reset-Password-Template.hbs +++ b/src/modules/email/hng-templates/Reset-Password-Template.hbs @@ -1,50 +1,4 @@ - - - - - Reset Your Password - - -
-

- - - - - - - Boilerplate. -

-
- +{{#> body}}
@@ -213,82 +167,5 @@
- - - \ No newline at end of file + {{/body}} + \ No newline at end of file diff --git a/src/modules/email/hng-templates/Subscription-Cancellation-Confirmation.hbs b/src/modules/email/hng-templates/Subscription-Cancellation-Confirmation.hbs index f29c6adab..b4c69b94b 100644 --- a/src/modules/email/hng-templates/Subscription-Cancellation-Confirmation.hbs +++ b/src/modules/email/hng-templates/Subscription-Cancellation-Confirmation.hbs @@ -1,57 +1,4 @@ - - - - - Subscription Cancellation Confirmation - - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -241,82 +188,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Subscription-Confirmation.hbs b/src/modules/email/hng-templates/Subscription-Confirmation.hbs index 78009c01e..fe3a5a3f0 100644 --- a/src/modules/email/hng-templates/Subscription-Confirmation.hbs +++ b/src/modules/email/hng-templates/Subscription-Confirmation.hbs @@ -1,61 +1,4 @@ - - - - - New Feature Announcement - - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -190,83 +133,4 @@
- - - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Subscription-Renewal-Disabled.hbs b/src/modules/email/hng-templates/Subscription-Renewal-Disabled.hbs index 2bd05f610..5b5282eac 100644 --- a/src/modules/email/hng-templates/Subscription-Renewal-Disabled.hbs +++ b/src/modules/email/hng-templates/Subscription-Renewal-Disabled.hbs @@ -1,57 +1,4 @@ - - - - - Subscription Renewal Disabled - - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -252,83 +199,4 @@
- - - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Subscription-Renewal-Failed.hbs b/src/modules/email/hng-templates/Subscription-Renewal-Failed.hbs index 0d7fcdf15..03e6b3fec 100644 --- a/src/modules/email/hng-templates/Subscription-Renewal-Failed.hbs +++ b/src/modules/email/hng-templates/Subscription-Renewal-Failed.hbs @@ -1,54 +1,4 @@ - - - - - Subscription Renewal Failed - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -274,83 +224,4 @@
- - - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Subscription-Renewal-Reminder.hbs b/src/modules/email/hng-templates/Subscription-Renewal-Reminder.hbs index 505fe604f..83f0ab2db 100644 --- a/src/modules/email/hng-templates/Subscription-Renewal-Reminder.hbs +++ b/src/modules/email/hng-templates/Subscription-Renewal-Reminder.hbs @@ -1,61 +1,4 @@ - - - - - Subscription Renewal Reminder - - - - - -
-

- - - - - - - Boilerplate. -

-
+{{#> body}}
@@ -660,83 +603,4 @@
- - - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/Welcome-Template.hbs b/src/modules/email/hng-templates/Welcome-Template.hbs index eee600e7e..893bf245d 100644 --- a/src/modules/email/hng-templates/Welcome-Template.hbs +++ b/src/modules/email/hng-templates/Welcome-Template.hbs @@ -1,49 +1,4 @@ - - - - - Welcome to HNG Boilerplate - - -
-

- - - - - - - Boilerplate. -

-
- +{{#> body}}
@@ -135,82 +90,4 @@
- - - \ No newline at end of file + {{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/base.hbs b/src/modules/email/hng-templates/base.hbs new file mode 100644 index 000000000..1c0bed66d --- /dev/null +++ b/src/modules/email/hng-templates/base.hbs @@ -0,0 +1,32 @@ + + + + + + +
+ +
+ Company Logo +
+ + + {{{body}}} + + + +
+ + diff --git a/src/modules/email/hng-templates/contact-inquiry.hbs b/src/modules/email/hng-templates/contact-inquiry.hbs index c5dd275c8..6f37d221a 100644 --- a/src/modules/email/hng-templates/contact-inquiry.hbs +++ b/src/modules/email/hng-templates/contact-inquiry.hbs @@ -1,56 +1,22 @@ - - - - - Contact Inquiry - - - -
- -
-

Contact Inquiry Received

-
+{{#> body}} - -
-

Hello,

-

- You have received a new contact inquiry from your website. Here are the details: -

-

- Name: - {{name}}
- Email: - {{email}}
- Phone Number: - {{phonenumber}}
- Message: - {{message}}
- Date: - {{date}} -

-

- Please follow up with the inquirer as soon as possible. If you have any questions, feel free to reach out to - the support team. -

-
+ +
+

Hello,

+

+ You have received a new contact inquiry from your website. Here are the details: +

+

+ Name: {{name}}
+ Email: {{email}}
+ Phone Number: {{phonenumber}}
+ Message: {{message}}
+ Date: {{date}} +

+

+ Please follow up with the inquirer as soon as possible. If you have any questions, feel free to reach out to + the support team. +

+
- -
-

- Thank you for using our service.
- © Your Company Name. All rights reserved. -

-
-
- - \ No newline at end of file +{{/body}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/login-otp.hbs b/src/modules/email/hng-templates/login-otp.hbs index 3dd04aea2..9938b5c30 100644 --- a/src/modules/email/hng-templates/login-otp.hbs +++ b/src/modules/email/hng-templates/login-otp.hbs @@ -1,21 +1,11 @@ -Email Confirmation
Company Logo

Confirm Your Email Address

Hello {{email}}

Thank you for - registering. Please confirm your email address by entering the otp: - {{otp}}

If you didn't create an account with us, you can safely ignore this email.

\ No newline at end of file +{{! login.hbs }} + +{{#> base}} +
+

Confirm Your Email Address

+

Hello {{email}},

+

Thank you for registering. Please confirm your email address by entering the OTP:

+

{{otp}}

+

If you didn't create an account with us, you can safely ignore this email.

+
+{{/base}} \ No newline at end of file diff --git a/src/modules/email/hng-templates/waitlist-confirmation.hbs b/src/modules/email/hng-templates/waitlist-confirmation.hbs index 678aad54e..e0c57f66c 100644 --- a/src/modules/email/hng-templates/waitlist-confirmation.hbs +++ b/src/modules/email/hng-templates/waitlist-confirmation.hbs @@ -1,22 +1,9 @@ - +{{! waitlistconfirmation.hbs }} - - - - Waitlist Confirmation - - - - -
-

Waitlist Confirmation

-

Hello {{recipientName}},

-

Thank you for signing up for our waitlist! We will notify you once you are selected.

-
- - - \ No newline at end of file +{{#> base}} +
+

Waitlist Confirmation

+

Hello {{recipientName}},

+

Thank you for signing up for our waitlist! We will notify you once you are selected.

+
+{{/base}} \ No newline at end of file