Skip to content

Commit 1c8189c

Browse files
authored
🎨 Updates email templates and increases invitation credits limit (#5450)
1 parent f2c7c67 commit 1c8189c

File tree

41 files changed

+448
-275
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+448
-275
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ endif
131131

132132
## DOCKER BUILD -------------------------------
133133
#
134-
# - all builds are inmediatly tagged as 'local/{service}:${BUILD_TARGET}' where BUILD_TARGET='development', 'production', 'cache'
134+
# - all builds are immediatly tagged as 'local/{service}:${BUILD_TARGET}' where BUILD_TARGET='development', 'production', 'cache'
135135
# - only production and cache images are released (i.e. tagged pushed into registry)
136136
#
137137
SWARM_HOSTS = $(shell docker node ls --format="{{.Hostname}}" 2>$(if $(IS_WIN),NUL,/dev/null))

packages/models-library/src/models_library/api_schemas_webserver/product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class GetProduct(OutputSchema):
6464

6565
class ExtraCreditsUsdRangeInt(ConstrainedInt):
6666
ge = 0
67-
lt = 200
67+
lt = 500
6868

6969

7070
class GenerateInvitation(InputSchema):

packages/notifications-library/src/notifications_library/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
</style>
2525
</head>
2626
<body>
27+
<div class="container">
2728
{% block content %}
2829
{% endblock %}
30+
</div>
2931
</body>
3032
</html>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_account_form.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear Support team
5+
6+
<p>
7+
We have received the following request form for an account in {{ product.display_name }} from {{ host }}
8+
</p>
9+
10+
<pre>
11+
{{ dumps(request_form) }}
12+
</pre>
13+
14+
<p>
15+
Some details about the requested product follow:
16+
</p>
17+
18+
<pre>
19+
{{ dumps(product_info) }}
20+
</pre>
21+
22+
<p>
23+
To validate the request form, here you can get further info on this request:
24+
</p>
25+
26+
<pre>
27+
{{ dumps(ipinfo) }}
28+
</pre>
29+
30+
<p>TIP: Use https://ipinfo.io/ to find out more information on the ip</p>
31+
32+
{% endblock %}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Dear Support team,
2+
3+
We have received the following request form for an account in {{ product.display_name }} from {{ host }}:
4+
5+
{{ dumps(request_form) }}
6+
7+
Some details about the requested product follow:
8+
9+
{{ dumps(product_info) }}
10+
11+
To validate the request form, here you can get further info on this request:
12+
13+
{{ dumps(ipinfo) }}
14+
15+
TIP: Use https://ipinfo.io/ to find out more information on the IP.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Request for an Account in {{ host }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_change_email.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
5+
<p>
6+
You have requested to change the email address linked to your {{ product.display_name }} account.
7+
Please follow the on-screen information in the link below:
8+
</p>
9+
10+
<p>
11+
<a href="{{ link }}">{{ link }}</a>
12+
</p>
13+
14+
<p>Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
15+
</p>
16+
<p>Best Regards,</p>
17+
<p>The <i>{{ product.display_name }}</i> Team</p>
18+
{% endblock %}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Dear {{ user.first_name }},
2+
3+
You have requested to change the email address linked to your {{ product.display_name }} account. Please follow the on-screen information in the link below:
4+
5+
{{ link }}
6+
7+
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.
8+
9+
Best Regards,
10+
The {{ product.display_name }} Team
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Change of Your Sign-In Email Address on {{ host }}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<p>
2-
Dear {{ user.first_name }} <br><br>
3-
Please find below the Two-factor Authentication sign-in code for your {{ host }} account.
4-
</p>
1+
{% extends 'base.html' %}
2+
{% block title %} {% include 'on_new_code.email.subject.txt' %} {% endblock %}
3+
{% block content %}
4+
<p>Dear {{ user.first_name }},</p>
5+
<p>Please find below the Two-factor Authentication sign-in code for your {{ host }} account.</p>
56

67
<p>
78
Your code is: <b> {{ code }} </b>
89
</p>
910

10-
<p>
11-
Please don't hesitate to contact us at {{ product.support_email }} if you need further help.<br><br>
12-
Best regards <br>
13-
The <i>{{ product.display_name }}</i> Team
14-
</p>
11+
<p>Please don't hesitate to contact us at {{ product.support_email }} if you need further help.</p>
12+
<p>Best Regards,</p>
13+
<p>The <i>{{ product.display_name }}</i> Team</p>
14+
{% endblock %}

0 commit comments

Comments
 (0)