Files
Phraseanet/templates/web/email-template.html.twig
Ysolyne Gresille 58f718f773 new email template
2012-09-12 11:12:14 +02:00

108 lines
7.9 KiB
Twig
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{{ subject }}</title>
</head>
<body>
<!-- Wrapper Table: to control the width and the background color consistently, instead of setting attributes on the body tag. -->
<table cellpadding="0" cellspacing="0" border="0" style="margin:0; padding:0; width:100% !important; line-height: 100% !important;">
<tr>
<td>
<!-- Header table -->
<table cellpadding="0" cellspacing="0" border="0" align="center" style="border-style:solid; border-width:1px; border-color:#494949; background-color: #494949;">
<tr>
<td width="10" height="40" valign="center" align="left" style="font-size:0px;"></td>
<td width="150" height="40" valign="center" align="left" style="font-family:Tahoma,sans-serif; font-size:22px; font-weight:normal; color:#FFF;">
{% if logoUrl is defined %}
<img src="{{ logoUrl }}" alt="{{ logoText }}" title="{{ logoText }}" width="140" height="30" style="display:block; outline:none; text-decoration:none; -ms-interpolation-mode: bicubic;" />
{% else %}
{{ logoText }}
{% endif %}
</td>
<td width="400" height="40" valign="center" align="center" style="font-family:Tahoma,sans-serif; font-size:14px; font-weight:bold; color:#FFF;">
{{ title }}
</td>
<td width="160" height="40" valign="center" align="left" style="font-size:0px;"></td>
</tr>
</table>
<!-- End of header table -->
<!-- Content table -->
<table cellpadding="0" cellspacing="0" border="0" align="center" style="border-style:solid; border-width:1px; border-color:#494949; background-color:#FFF;">
<tr>
<td width="100" height="130" valign="top" align="center" style="font-size:0px;"></td>
<td width="620" height="130" valign="center" align="center">
<!-- Message Table -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td width="620" height="15" valign="center" align="center" style="font-size:0px;"></td>
</tr>
<tr>
<td width="620" height="115" valign="center" align="left" style="font-family:sans-serif,'Lucida Console'; font-size:14px; color:#494949;">
{% if senderName is defined and senderMail is defined %}
{{ senderName }} - <a href="mailto:{{ authorMail }}" target="_blank" style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; cursor:pointer;">
<span style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; cursor:pointer;">{{ senderMail }}</span></a><br/>
{% endif %}
<br/>
{{ messageText }}
<br/>
</td>
</tr>
</table>
<!-- End of message table -->
</td>
</tr>
{% if buttonText is defined and buttonUrl is defined %}
<tr>
<td colspan="2" width="720" height="70" valign="center" align="center" style="">
<!-- Button Table -->
<table cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td colspan="3" width="720" height="15" valign="center" align="center" style="font-size:0px;"></td>
</tr>
<tr>
<td width="255" height="40" valign="center" align="center" style="font-size:0px;"></td>
<td width="210" height="40" valign="center" align="center" style="background-color:#FFA500; font-family:sans-serif,'Lucida Console'; font-size:14px; font-weight:bold; color:#FFF;">
<a href="{{ buttonUrl }}" target="_blank" style="color:#FFFFFF; color:#FFFFFF !important; text-decoration:none; cursor:pointer;">
<span style="color:#FFFFFF; color:#FFFFFF !important; text-decoration:none; cursor:pointer;">{{ buttonText }}</span>
</a>
</td>
<td width="255" height="40" valign="center" align="center" style="font-size:0px;"></td>
</tr>
<tr>
<td colspan="3" width="720" height="15" valign="center" align="center" style="font-size:0px;"></td>
</tr>
</table>
<!-- End of button table -->
</td>
</tr>
{% endif %}
<tr>
<td colspan="2" width="720" height="60" valign="center" align="center" style="font-family:sans-serif,'Lucida Console'; font-size:15px; font-weight:bold; text-transform:uppercase; color:#494949;">
Le contenu de cet email est confidentiel, ne le divulguez pas.
</td>
</tr>
</table>
<!-- End of content table -->
<!-- Footer table -->
<table cellpadding="0" cellspacing="0" border="0" align="center" style="border-style:solid; border-width:1px; border-color:#494949; background-color:#494949;">
<tr>
<td width="10" height="50" valign="center" align="left" style="font-size:0px;"></td>
<td width="710" height="50" valign="center" align="left" style="font-family:Tahoma,sans-serif; font-size:11px; font-style:italic; color:#FFF;">
Si cet email contient des liens non cliquables, copiez/collez ces liens dans votre navigateur.<br/>
Message automatique de Phraseanet - Pour gérer l'envoi d'email automatique, connectez-vous à
<a href="{{ phraseanetUrl }}" target="_blank" style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; font-weight:bold; cursor:pointer;">
<span style="color:#FFA500; color:#FFA500 !important; text-decoration:underline; font-weight:bold; cursor:pointer;">{{ phraseanetUrl }}</span>
</a>
</td>
</tr>
</table>
<!-- End of footer table -->
</td>
</tr>
</table>
<!-- End of wrapper table -->
</body>
</html>