From ca831f79e51a8c883fb2f2d95c740704a92b672d Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Wed, 9 Oct 2024 15:15:27 +0300 Subject: [PATCH] feat: order additional environments email templates (#8401) Most of the HTML/styles retaken from existing templates. ![image](https://github.com/user-attachments/assets/5244c8d2-fe80-474a-9e65-a0f5ae4d44c2) --- .../EnvironmentTable/EnvironmentTable.tsx | 2 +- .../order-environments.html.mustache | 379 ++++++++++++++++++ .../order-environments.plain.mustache | 13 + 3 files changed, 393 insertions(+), 1 deletion(-) create mode 100644 src/mailtemplates/order-environments/order-environments.html.mustache create mode 100644 src/mailtemplates/order-environments/order-environments.plain.mustache diff --git a/frontend/src/component/environments/EnvironmentTable/EnvironmentTable.tsx b/frontend/src/component/environments/EnvironmentTable/EnvironmentTable.tsx index 8b88863c39..99d3fdddb9 100644 --- a/frontend/src/component/environments/EnvironmentTable/EnvironmentTable.tsx +++ b/frontend/src/component/environments/EnvironmentTable/EnvironmentTable.tsx @@ -134,7 +134,7 @@ export const EnvironmentTable = () => { {isPro() && isPurchaseAdditionalEnvironmentsEnabled ? ( <> setPurchaseDialogOpen(true)} /> diff --git a/src/mailtemplates/order-environments/order-environments.html.mustache b/src/mailtemplates/order-environments/order-environments.html.mustache new file mode 100644 index 0000000000..b1dde723e4 --- /dev/null +++ b/src/mailtemplates/order-environments/order-environments.html.mustache @@ -0,0 +1,379 @@ + + + + + *|MC:SUBJECT|* + + + +
+ + + + +
+ + + + + + + + + + + +
+ + + + + +
+ +
+ +
+

Order for additional environments submitted

+

Hello,

+

An order for additional environments has been successfully submitted by {{{ userEmail }}} for customer ID {{{ instanceId }}}. Below are the details of the environments requested:

+
    + {{#environments}} +
  • {{{ name }}}
  • + {{/environments}} +
+

Please note that it may take up to 24 hours for these changes to come into effect.

+

Thank you for your attention.

+
+ + + + + + + + +
+ Unleash blog + Github + Slack community + Help center +
+ Copyright © {{ year }} | Bricks Software | All rights reserved. +
+ +
+ +
+
+ + diff --git a/src/mailtemplates/order-environments/order-environments.plain.mustache b/src/mailtemplates/order-environments/order-environments.plain.mustache new file mode 100644 index 0000000000..2075f983a5 --- /dev/null +++ b/src/mailtemplates/order-environments/order-environments.plain.mustache @@ -0,0 +1,13 @@ +Subject: Order for additional environments submitted + +Hello, + +An order for additional environments has been successfully submitted by {{ userEmail }} for customer ID {{ instanceId }}. Below are the details of the environments requested: + +{{#environments}} + - {{ name }} +{{/environments}} + +Please note that it may take up to 24 hours for these changes to come into effect. + +Thank you for your attention.