Skip to content

Commit 3856e16

Browse files
committed
Emails template
1 parent 046a1c5 commit 3856e16

File tree

6 files changed

+193
-14
lines changed

6 files changed

+193
-14
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 82 additions & 0 deletions
Loading
Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
1-
{%- block from -%}
2-
{%- endblock from -%}
1+
{% extends '@ibexadesign/ui/mail/base_mail_template.html.twig' %}
32

43
{%- block subject -%}
54
{{ 'ezplatform.forgot_user_password.reset_your_password'|trans|desc('Reset your password') }}
65
{%- endblock subject -%}
76

8-
{%- block body -%}
9-
<p>
10-
{{ 'ezplatform.forgot_user_password.message'|trans({ '%reset_password%': url('ibexa.user.reset_password', {'hashKey': hash_key}) })|raw
11-
|desc('Hi,
12-
<br /><br />
13-
We have received a request to reset the password for your Ibexa DXP account. Click “reset password” below to choose a new password:
14-
<br /><br />
15-
<a href="%reset_password%">Reset password</a>
16-
<br /><br />
17-
If you did not request a password reset, please ignore this email, and your password will remain the same.') }}
18-
</p>
19-
{%- endblock body -%}
7+
{% block message_title %}
8+
{{ 'ezplatform.forgot_user_password.body_title'|trans()|desc('Hello,') }}
9+
{% endblock %}
10+
11+
{% block message %}
12+
{{ 'ezplatform.forgot_user_password.body_msg'|trans()|desc('We have received a request to reset the password for your account. Click "reset password" below to choose a new password:') }}
13+
{% endblock %}
14+
15+
{% block message_actions %}
16+
{% include '@ibexadesign/ui/mail/action_btn.html.twig' with {
17+
url: url('ibexa.user.reset_password', {'hashKey': hash_key}),
18+
label: 'ezplatform.forgot_user_password.reset_password'|trans()|desc('Reset password')
19+
} %}
20+
{% endblock %}
21+
22+
{%- block message_footer -%}
23+
{{ 'ezplatform.forgot_user_password.footer_msg'|trans()|desc('If you did not request a password reset, please ignore this email, and your password will remain the same.') }}
24+
{%- endblock -%}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<table role="presentation" cellspacing="0" cellpadding="0" border="0" style="width: 200px">
2+
<tr style="width: 50%">
3+
<td style="width: 16px; height: 48px;">
4+
<img src="{{ 'https://127.0.0.1:8000/' ~ asset('bundles/ibexaadminui/img/mail/button_left_side.svg') }}" />
5+
</td>
6+
<td style="height: 48px; background: #AE1164; text-align: center;">
7+
<a
8+
style="
9+
display: table-cell;
10+
width: 168px;
11+
height: 48px;
12+
text-align: center;
13+
vertical-align: middle;
14+
text-decoration: none;
15+
color: #ffffff;
16+
"
17+
href="{{ url }}"
18+
>
19+
{{ label }}
20+
</a>
21+
</td>
22+
<td style="width: 16px; height: 48px;">
23+
<img src="{{ 'https://127.0.0.1:8000/' ~ asset('bundles/ibexaadminui/img/mail/button_right_side.svg') }}" />
24+
</td>
25+
</tr>
26+
</table>
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{%- block subject -%}{%- endblock subject -%}
2+
3+
{%- block from -%}
4+
{%- endblock from -%}
5+
6+
<!DOCTYPE html>
7+
<html lang="en">
8+
{% block head %}
9+
<head>
10+
<meta charset="UTF-8">
11+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
12+
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300&display=swap" rel="stylesheet">
13+
<title>{% block head_title %}Ibexa DXP{% endblock %}</title>
14+
</head>
15+
{% endblock %}
16+
{% block body %}
17+
<body>
18+
<table role="presentation" cellspacing="0" cellpadding="0" border="0" style="width: 585px; font-family: 'Noto Sans', sans-serif;">
19+
{% block message_header_wrapper %}
20+
<tr>
21+
<td style="padding-bottom: 14px">
22+
{% block message_header %}
23+
<img src="{{ 'https://127.0.0.1:8000/' ~ asset('bundles/ibexaadminui/img/mail/header_bg.svg') }}" alt="Ibexa" />
24+
{% endblock %}
25+
</td>
26+
</tr>
27+
{% endblock %}
28+
29+
{% block message_title_wrapper %}
30+
<tr>
31+
<td style="padding: 0 48px 16px 48px">{% block message_title %}{% endblock %}</td>
32+
</tr>
33+
{% endblock %}
34+
35+
{% block message_wrapper %}
36+
<tr>
37+
<td style="padding: 0 48px 24px 48px">{% block message %}{% endblock %}</td>
38+
</tr>
39+
{% endblock %}
40+
41+
{% block message_actions_wrapper %}
42+
<tr>
43+
<td style="padding: 0 48px 48px 48px">{% block message_actions %}{% endblock %}</td>
44+
</tr>
45+
{% endblock %}
46+
47+
{% block message_footer_wrapper %}
48+
<tr>
49+
<td style="padding: 0 48px 0 48px">
50+
<div style="width: 100%; height: 1px; background: #e0e0e0;"></div>
51+
</td>
52+
</tr>
53+
<tr>
54+
<td style="padding: 14px 48px 0 48px">{% block message_footer %}{% endblock %}</td>
55+
</tr>
56+
{% endblock %}
57+
</table>
58+
</body>
59+
{% endblock %}
60+
</html>

0 commit comments

Comments
 (0)