From b3f61f51e367c10e102e1d53e6c41c8280f6c0c3 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 3 Mar 2021 17:35:21 +0100 Subject: [PATCH] Added basic welcome mails ref #2 --- src/locales/en.json | 40 +-- src/templates/welcome_runner.html | 397 ++++++++++++++++++++++++++++++ src/templates/welcome_runner.txt | 18 ++ 3 files changed, 440 insertions(+), 15 deletions(-) create mode 100644 src/templates/welcome_runner.html create mode 100644 src/templates/welcome_runner.txt diff --git a/src/locales/en.json b/src/locales/en.json index 7f56e85..4829060 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,16 +1,26 @@ { - "a-password-reset-for-your-account-got-requested": "A password reset for your account got requested.", - "all-rights-reserved": "All rights reserved.", - "if-you-didnt-request-the-reset-please-ignore-this-mail": "If you didn't request the reset please ignore this mail.", - "imprint": "Imprint", - "lfk-mail-test": "{{copyright_owner}} - Mail test", - "lfk-password-reset": "{{copyright_owner}} - Password reset", - "password-reset": "Password reset", - "privacy": "Privacy", - "reset-password": "Reset password", - "test-mail": "Test mail", - "this-is-a-test-mail-triggered-by-an-admin-in-the-lfk-backend": "This is a test mail triggered by an admin in the LfK! backend.", - "this-mail-was-sent-to-recipient_mail-because-someone-request-a-mail-test-for-this-mail-address": "This mail was sent to you because someone request a mail test for this mail address.", - "this-mail-was-sent-to-you-because-someone-request-a-password-reset-for-a-account-linked-to-the-mail-address": "This mail was sent to you because someone request a password reset for a account linked to the mail address.", - "your-password-wont-be-changed-until-you-click-the-reset-link-below-and-set-a-new-one": "Your password won't be changed until you click the reset link below and set a new one." -} \ No newline at end of file + "a-password-reset-for-your-account-got-requested": "A password reset for your account got requested.", + "all-rights-reserved": "All rights reserved.", + "if-you-didnt-request-the-reset-please-ignore-this-mail": "If you didn't request the reset please ignore this mail.", + "imprint": "Imprint", + "lfk-mail-test": "{{copyright_owner}} - Mail test", + "lfk-password-reset": "{{copyright_owner}} - Password reset", + "password-reset": "Password reset", + "privacy": "Privacy", + "reset-password": "Reset password", + "test-mail": "Test mail", + "this-is-a-test-mail-triggered-by-an-admin-in-the-lfk-backend": "This is a test mail triggered by an admin in the LfK! backend.", + "this-mail-was-sent-to-recipient_mail-because-someone-request-a-mail-test-for-this-mail-address": "This mail was sent to you because someone request a mail test for this mail address.", + "this-mail-was-sent-to-you-because-someone-request-a-password-reset-for-a-account-linked-to-the-mail-address": "This mail was sent to you because someone request a password reset for a account linked to the mail address.", + "your-password-wont-be-changed-until-you-click-the-reset-link-below-and-set-a-new-one": "Your password won't be changed until you click the reset link below and set a new one.", + "event_name-registration": "{{event_name}} Registration", + "welcome": "Welcome", + "thanks-for-registering-and-welcome-to-the-event_name": "Thanks for registering and welcome to the {{event_name}}!", + "we-successfully-processed-your-registration": "We successfully processed your registration.", + "the-only-thing-you-have-to-do-now-is-to-bring-your-registration-code-with-you": "The only thing you have to do now is to bring your registration code with you.", + "you-can-view-your-registration-code-lap-times-and-much-more-by-visiting-our-selfservice": "You can view your registration code, lap times and much more by visiting our selfservice:", + "if-you-ever-loose-the-link-you-can-request-a-new-one-by-visiting-our-website": "If you ever loose the link you can request a new one by visiting our website:", + "view-my-data": "View my data", + "this-mail-was-sent-to-you-because-someone-used-your-mail-address-to-register-themselfes-for-the-event_name": "This mail was sent to you, because someone used your mail address to register themselfes for the {{event_name}}", + "if-you-didnt-register-yourself-you-should-contact-us-to-get-your-data-removed-from-our-systems": "If you didn't register yourself you should contact us to get your data removed from our systems:" +} diff --git a/src/templates/welcome_runner.html b/src/templates/welcome_runner.html new file mode 100644 index 0000000..c0acbdf --- /dev/null +++ b/src/templates/welcome_runner.html @@ -0,0 +1,397 @@ + + + + + {{__ "event_name-registration"}} + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ {{__ "event_name-registration"}} +
+ + + + +
+ + \ No newline at end of file diff --git a/src/templates/welcome_runner.txt b/src/templates/welcome_runner.txt new file mode 100644 index 0000000..2d78482 --- /dev/null +++ b/src/templates/welcome_runner.txt @@ -0,0 +1,18 @@ +{{event_name}} Registration + +Thanks for registering and welcome to the {{event_name}}! +We successfully processed your registration. + +The only thing you have to do now is to bring your registration code with you. +You can view your registration code, lap times and much more by visiting our selfservice. + +This is your private selfservice link: +{{selfservice_url}} + +If you ever loose the link you can request a new one by visiting our website: {{forgot_link}} + + +Copyright © {{copyright_owner}}. {{__ "all-rights-reserved"}}. +{{__ "imprint"}}: {{link_imprint}} | {{__ "privacy"}}: {{link_privacy}} +This mail was sent to you, because someone used your mail address to register themselfes for the {{event_name}}. +If you didn't register yourself you should contact us at {{contact_mail}} to get your data removed from our systems. \ No newline at end of file