]> Raphaël G. Git Repositories - airbundle/blobdiff - Resources/views/mail/register.html.twig
Use full entity name instead of undefined short version
[airbundle] / Resources / views / mail / register.html.twig
index 8a6c0d3dac54370f123db7d332c16cd531ac140c..d5acf7343577792a13771f58aae54c5cf8880dc6 100644 (file)
@@ -1,43 +1,16 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-       <meta name="viewport" content="width=device-width" />
-       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-       <title>{{ 'Welcome to %title%'|trans({'%title%': title}) }}</title>
-       <style>
-               body {background:white;color:#066}
-               a {text-decoration:none;color:#066}
-               a:hover {text-decoration:underline}
-               table {width: 100%;border-radius: .5rem}
-               table.head {border:.1rem solid #00c3f9;text-align:center}
-               table.body {background:white;border:.1rem solid #00c3f9;margin:.5rem 0}
-               table.footer {border:.1rem solid #00c3f9;text-align:center;font-weight:bold}
-               table.footer summary:after {display:none}
-               table.footer summary::-webkit-details-marker {display:none}
-       </style>
-</head>
-<body>
-       <table class="head">
-               <tr>
-                       <td><a href="{{ url }}"><img src="data:image/png;base64, {{ logo|file_get_contents|base64_encode }}" alt="{{ title|trans }}" /></a></td>
-                       <td><h1><a href="{{ url }}">{{ title|trans }}</a></h1></td>
-               </tr>
-       </table>
-       <table class="body">
+{% extends '@RapsysAir/mail/body.html.twig' %}
+{% block content %}
+       <table class="content">
                <tr>
                        <td>&nbsp;</td>
                        <td>
-                               <h2>{% trans %}Hi,{% endtrans %} {{ contact_name }}</h2>
-                               <h3>{% trans %}Subject:{% endtrans %} {{ 'Welcome to %title%'|trans({'%title%': title|trans}) }}</h3>
-                               <p>{{ 'Thanks so much for joining us, from now you can reserver your %title% spaces.'|trans({'%title%': title|trans}) }}</p>
+                               <h2>{{ 'Subject: %subject%'|trans({'%subject%': 'welcome to %site.title%'|trans({'%site.title%': site.title})|raw}) }}</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 %site.title%, the space reservation program.'|trans({'%site.title%': site.title}) }}</p>
+                               <p>{% trans %}To create your account you must follow this link:{% endtrans %}</p>
+                               <p><a href="{{ confirm_url|escape('html_attr') }}" class="link">{{ confirm_url }}</a></p>
                        </td>
                        <td>&nbsp;</td>
                </tr>
        </table>
-       <table class="footer">
-               <tr>
-                       <td>{% trans %}Raphaël Gertz all rights reserved{% endtrans %} - {% trans %}Copyright 2018{% endtrans %}.</td>
-               </tr>
-       </table>
-</body>
-</html>
+{% endblock %}