confirmation_email.html.twig and reset_password/email.html.twig were plain unstyled HTML with no shared structure. Extract a table-based layout (templates/emails/layout.html.twig) with header/logo, content block, and footer, so future transactional emails can extend it instead of starting from scratch. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
35 lines
1.3 KiB
Twig
35 lines
1.3 KiB
Twig
{% extends 'emails/layout.html.twig' %}
|
|
|
|
{% block title %}Confirm your email{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1 style="margin:0 0 16px; font-size:20px; color:#222222;">Hi! Please confirm your email</h1>
|
|
|
|
<p style="margin:0 0 24px;">
|
|
Thanks for signing up. Please confirm your email address by clicking the button below.
|
|
This link will expire in {{ expiresAtMessageKey|trans(expiresAtMessageData, 'VerifyEmailBundle') }}.
|
|
</p>
|
|
|
|
<table role="presentation" cellpadding="0" cellspacing="0" style="margin:0 0 24px;">
|
|
<tr>
|
|
<td style="border-radius:4px; background-color:#3a7ca5;">
|
|
<a href="{{ signedUrl }}" style="display:inline-block; padding:12px 24px; color:#ffffff; text-decoration:none; font-weight:bold;">
|
|
Confirm my email
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<p style="margin:0 0 24px;">
|
|
If the button doesn't work, copy and paste this link into your browser:<br>
|
|
<a href="{{ signedUrl }}" style="color:#3a7ca5; word-break:break-all;">{{ signedUrl }}</a>
|
|
</p>
|
|
|
|
<p style="margin:0 0 8px;">
|
|
If the link has expired or doesn't work, you can
|
|
<a href="{{ url('app_verify_resend_email') }}" style="color:#3a7ca5;">request a new one</a>.
|
|
</p>
|
|
|
|
<p style="margin:24px 0 0;">Cheers!</p>
|
|
{% endblock %}
|