diff --git a/backend/resources/emails-mjml/invite-to-team/en.mjml b/backend/resources/emails-mjml/invite-to-team/en.mjml new file mode 100644 index 0000000000..dbef7afe5f --- /dev/null +++ b/backend/resources/emails-mjml/invite-to-team/en.mjml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + Hello! + + {{invited-by}} has invited you to join the team “{{ team }}”. + + + Accept invite + + Enjoy! + The UXBOX team. + + + + + + + UXBOX is the first Open Source prototyping platform that will be embraced by multidisciplinary teams. + + + + + + + + + + + + + + + + + + + + UXBOX © 2020 | Made with <3 and Open Source + + + + + + diff --git a/backend/resources/emails/invite-to-team/en.html b/backend/resources/emails/invite-to-team/en.html new file mode 100644 index 0000000000..3a77a7a6ec --- /dev/null +++ b/backend/resources/emails/invite-to-team/en.html @@ -0,0 +1,468 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + +
+ +
+ + + + +
+ + + + + + +
+ +
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + + +
+
Hello!
+
+
{{invited-by}} has invited you to join the team “{{ team }}”.
+
+ + + + +
+ Accept invite +
+
+
Enjoy!
+
+
The UXBOX team.
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+
UXBOX is the first Open Source prototyping platform that will be embraced by multidisciplinary teams.
+
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ + + + + +
+ + + + +
+ + + +
+
+ +
+
+ +
+
+ +
+ + + + + + +
+ +
+ + + + +
+
UXBOX © 2020 | Made with <3 and Open Source
+
+
+ +
+
+ +
+ + + \ No newline at end of file diff --git a/backend/resources/emails/invite-to-team/en.subj b/backend/resources/emails/invite-to-team/en.subj new file mode 100644 index 0000000000..1ff46884ac --- /dev/null +++ b/backend/resources/emails/invite-to-team/en.subj @@ -0,0 +1 @@ +Inviation to join {{team}} \ No newline at end of file diff --git a/backend/resources/emails/invite-to-team/en.txt b/backend/resources/emails/invite-to-team/en.txt new file mode 100644 index 0000000000..c999019cc3 --- /dev/null +++ b/backend/resources/emails/invite-to-team/en.txt @@ -0,0 +1,10 @@ +Hello! + +{{invited-by}} has invited you to join the team “{{ team }}”. + +Accept invitation using this link: + +{{ public-uri }}/#/auth/verify-token?token={{token}} + +Enjoy! +The UXBOX team. diff --git a/backend/src/app/emails.clj b/backend/src/app/emails.clj index 95a96d13b6..9bef19b2ee 100644 --- a/backend/src/app/emails.clj +++ b/backend/src/app/emails.clj @@ -74,3 +74,16 @@ (def change-email "Password change confirmation email" (emails/build ::change-email default-context)) + +(s/def :internal.emails.invite-to-team/invited-by ::us/string) +(s/def :internal.emails.invite-to-team/team ::us/string) +(s/def :internal.emails.invite-to-team/token ::us/string) + +(s/def ::invite-to-team + (s/keys :keys [:internal.emails.invite-to-team/invited-by + :internal.emails.invite-to-team/token + :internal.emails.invite-to-team/team])) + +(def invite-to-team + "Teams member invitation email." + (emails/build ::invite-to-team default-context))