-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add localized email templates for password recovery and team in…
…formation in greek (M2-8109) (#1652) * feat: Add localized email templates for password recovery and team information in greek * refactor: Update get_tz_utc_offset function to handle timezone input and exceptions * refactor: Enhance get_tz_utc_offset function to support dependency injection and improve timezone handling + revert deps change * refactor: ruff format * feat: Update password recovery service to use language parameter for localized email subject * fix: fixing dupe subject property * fix: fixing missing french template * fix: ruff format * fix: correct content language handling in password recovery * fix: using now infrastructure.http to retrieve language * fix: revert incorrect change --------- Co-authored-by: Ramir Mesquita <[email protected]>
- Loading branch information
Showing
7 changed files
with
130 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<tr> | ||
<td style="padding-top: 24px; padding-bottom: 1%">– Η Ομάδα MindLogger</td> | ||
</tr> |
52 changes: 52 additions & 0 deletions
52
src/apps/mailing/static/templates/footers/footer_info_el.html
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,52 @@ | ||
<table | ||
border="0" | ||
cellpadding="0" | ||
cellspacing="0" | ||
style="width: 100%; text-align: center" | ||
> | ||
<tr> | ||
<td> | ||
<table | ||
border="0" | ||
cellpadding="0" | ||
cellspacing="0" | ||
style=" | ||
width: 100%; | ||
background: #eff4fa; | ||
padding: 26px; | ||
border-radius: 8px; | ||
text-align: center; | ||
" | ||
> | ||
<tr> | ||
<td colspan="2" style="padding-bottom: 14px; font-size: 14px"> | ||
Κατεβάστε την εφαρμογή MindLogger για κινητές συσκευές: | ||
</td> | ||
</tr> | ||
<tr> | ||
<td width="50%" align="right" style="padding-right: 4px"> | ||
<a href="https://apps.apple.com/br/app/mindlogger/id1299242097"><img src="https://media.mindlogger.org/apple-store.png" style="height: 44px" alt="Λήψη εφαρμογής για iOS"/></a> | ||
</td> | ||
<td width="50%" align="left" style="padding-left: 4px"> | ||
<a href="https://play.google.com/store/apps/details?id=lab.childmindinstitute.data&pli=1"><img src="https://media.mindlogger.org/google-play.png" style="height: 44px" alt="Λήψη εφαρμογής για Android"/></a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2" style="padding-top: 23px; font-size: 14px"> | ||
Χρειάζεστε βοήθεια; <a href="https://mindlogger.atlassian.net/servicedesk/customer/portals" style="color: black">Κέντρο βοήθειας</a> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2" style="padding-top: 32px"> | ||
<img src="https://media.mindlogger.org/cmi-logo.png" style="width: 106px" alt="Child Mind Institute"/> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2" style="color: #51606f; padding-top: 12px; font-size: 12px"> | ||
Το Child Mind Institute είναι ο δημιουργός του MindLogger, ωστόσο δεν είναι υπεύθυνο για το περιεχόμενο που δημιουργείται από εξωτερικούς χρήστες. | ||
</td> | ||
</tr> | ||
</table> |
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,29 @@ | ||
<html style="max-width: 450px; line-height: 2.1rem; font-size: 10px" lang="el"> | ||
<body> | ||
{% include 'header.html' %} | ||
<table style="padding: 0; font-size: 1.4rem"> | ||
<tr> | ||
<td style="padding-bottom: 16px"> | ||
Λάβαμε ένα αίτημα για επαναφορά του κωδικού πρόσβασής σας. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-bottom: 16px"> | ||
<a href="{{url}}">Κάντε κλικ στον σύνδεσμο αυτόν</a> για επαναφορά του κωδικού πρόσβασής σας τώρα. Ο σύνδεσμος θα λήξει σε 15 λεπτά. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-bottom: 16px"> | ||
Εάν δεν πραγματοποιήσατε εσείς το αίτημα αυτό, μπορείτε να αγνοήσετε το συγκεκριμένο email. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>Μετά την ενημέρωση του κωδικού πρόσβασής σας, δεν θα βλέπετε τα προηγούμενα δεδομένα σας στην εφαρμογή. Αλλά μην ανησυχείτε, τα έχουμε ακόμα.</i> | ||
</td> | ||
</tr> | ||
{% include 'blocks/team_info_el.html' %} | ||
</table> | ||
{% include 'footers/footer_info_el.html' %} | ||
</body> | ||
</html> |
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,31 @@ | ||
<html style="max-width: 450px; line-height: 2.1rem; font-size: 10px" lang="fr"> | ||
<body> | ||
{% include 'header.html' %} | ||
<table style="padding: 0; font-size: 1.4rem"> | ||
<tr> | ||
<td style="padding-bottom: 16px"> | ||
Nous avons reçu une demande de réinitialisation de votre mot de passe. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-bottom: 16px"> | ||
<a href="{{url}}">Cliquez sur ce lien</a> pour réinitialiser votre mot de passe maintenant. Le lien expirera dans 15 minutes. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding-bottom: 16px"> | ||
Si vous n'avez pas fait cette demande, vous pouvez ignorer cet e-mail. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i> | ||
Après avoir mis à jour votre mot de passe, vous ne verrez plus vos données passées dans l'application. Mais ne vous inquiétez pas, nous les avons toujours. | ||
</i> | ||
</td> | ||
</tr> | ||
{% include 'blocks/team_info_fr.html' %} | ||
</table> | ||
{% include 'footers/footer_info_fr.html' %} | ||
</body> | ||
</html> |
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
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