vendee: mail logo in footer, added emails:logo slot (#67817)

This commit is contained in:
Corentin Sechet 2022-07-29 16:51:37 +02:00 committed by Thomas NOEL
parent 2075b00ac6
commit 650eed2dd4
3 changed files with 26 additions and 2 deletions

View File

@ -1,13 +1,15 @@
{
"label": "Vendée (CD85)",
"variables": {
"theme_color": "#ED1B24"
"theme_color": "#ED1B24",
"email_header_asset": "emails:logo"
},
"settings": {
"combo": {
"COMBO_ASSET_SLOTS.update": {
"header:background": { "label": "Têtière : fond" },
"header:logo": { "label": "Têtière : logo" }
"header:logo": { "label": "Têtière : logo" },
"emails:logo": {"label": "Emails : logo"}
}
}
}

View File

@ -0,0 +1,12 @@
{% extends "emails/footer.html" %}
{% block footer %}
{% if email_header_asset %}
<img style="max-width: {% firstof email_header_width "80%" %}"
alt="{% firstof global_title "Compte Citoyen" %}"
src="{{portal_url}}assets/emails:logo"/>
{% endif %}
{% if email_signature %}
{{ email_signature|linebreaks }}
{% endif %}
{% endblock %}

View File

@ -0,0 +1,10 @@
<table role="presentation" cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="max-width: 600px;">
<tr>
<td style="padding: 20px 0; text-align: center; font-family: sans-serif;">
<span style="font-size: 15px; line-height: 20px;">
{% firstof global_title "Compte Citoyen" %}
</span>
</td>
</tr>
</table>