]> Raphaël G. Git Repositories - blogbundle/commitdiff
Add register mail template
authorRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 06:01:44 +0000 (07:01 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 06:01:44 +0000 (07:01 +0100)
Resources/views/mail/register.html.twig [new file with mode: 0644]
Resources/views/mail/register.text.twig [new file with mode: 0644]

diff --git a/Resources/views/mail/register.html.twig b/Resources/views/mail/register.html.twig
new file mode 100644 (file)
index 0000000..390dde4
--- /dev/null
@@ -0,0 +1,14 @@
+{% extends '@RapsysBlog/mail/_base.html.twig' %}
+{% block content %}
+       <tbody>
+               <tr>
+                       <td colspan="2">
+                               <h2 title="{% trans %}Subject{% endtrans %}">{{ 'Welcome to %head.site%'|trans({'%head.site%': head.site}) }}</h2>
+                               <h3>{% if recipient_name %}{{ 'Hi %recipient_name%,'|trans({'%recipient_name%': recipient_name}) }}{% else %}{% trans %}Hi,{% endtrans %}{% endif %}</h3>
+                               <p>{{ 'Thanks so much for joining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}</p>
+                               <p>{% trans %}To create your account you must follow this link:{% endtrans %}</p>
+                               <p><a href="{{ confirm_url|escape('html_attr') }}">{{ confirm_url }}</a></p>
+                       </td>
+               </tr>
+       </tbody>
+{% endblock %}
diff --git a/Resources/views/mail/register.text.twig b/Resources/views/mail/register.text.twig
new file mode 100644 (file)
index 0000000..7cc66e1
--- /dev/null
@@ -0,0 +1,12 @@
+{{ subject }}
+{% for i in range(1, subject|length) %}={% endfor %}
+
+
+*{{ 'Thanks so much for joining %head.site%, the blog program.'|trans({'%head.site%': head.site}) }}*
+
+{% trans %}To create your account you must follow this link:{% endtrans %}
+{{ confirm_url }}
+
+--
+
+{{ copy.long }} - {{ copy.short }}