Skip to content

Commit

Permalink
change email templates
Browse files Browse the repository at this point in the history
  • Loading branch information
arti0090 committed Feb 18, 2021
1 parent 0ce0173 commit 9740b92
Showing 1 changed file with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
{% extends '@SyliusShop/Email/layout.html.twig' %}

{% block subject %}
{{ 'sylius.email.password_reset.subject'|trans({}, null, localeCode) }}
{% endblock %}

{% block content %}
{% set url = channel.hostname is not null ? 'http://' ~ channel.hostname ~ path('sylius_shop_password_reset', { 'token': user.passwordResetToken}) : url('sylius_shop_password_reset', { 'token': user.passwordResetToken}) %}

<div style="text-align: center; margin-bottom: 30px;">
<div style="font-size: 24px;">
{{ 'sylius.email.password_reset.hello'|trans({}, null, localeCode) }} <strong>{{ user.username }}</strong><br>
</div>
{{ 'sylius.email.password_reset.to_reset_your_password'|trans({}, null, localeCode) }}:
</div>

<div style="text-align: center;">
<a href="{{ url|raw }}" style="display: inline-block; text-align: center; background: #1abb9c; padding: 18px 28px; color: #fff; text-decoration: none; border-radius: 3px;">
{{ 'sylius.email.password_reset.reset_your_password'|trans({}, null, localeCode) }}
</a>
</div>
{% endblock %}
{% include '@SyliusCore/Email/passwordReset.html.twig' %}

0 comments on commit 9740b92

Please sign in to comment.