api/templates/communicationAlt/fr/email/notification/regular_carpool_will_expire.html.twig
{# CAREFUL : Some client might need to replicate this template #}
{% extends 'communicationAlt/fr/email/notification/base.html.twig' %}
{% block body %}
{% set ad = context.ad %}
{% set recipient = context.user %}
{% set sender = context.sender %}
{% set result = context.result %}
{% set outwardOrigin = context.outwardOrigin %}
{% set outwardDestination = context.outwardDestination %}
{% set returnOrigin = context.returnOrigin %}
{% set returnDestination = context.returnDestination %}
<table style="width:480px; font-family:{{api_env('EMAILS_FONT')}}, sans-serif;" cellpadding="0" cellspacing="0" summary="" border="0">
<tr style="margin-bottom:21px; margin-top:19px;">
<td align="center">
<table cellpadding="6" cellspacing="6" summary="" border="0">
<tr>
<td align="center">
<p style="color:{{api_env('EMAILS_COLOR_PRIMARY')}}; font-size:21px;" text-align="center" ><b>Votre covoiturage régulier va bientôt expirer !</b></p>
</td>
</tr>
</table>
</td>
</tr>
{# intro #}
<tr>
<td align="center">
<table style="width:100%;" cellpadding="4" cellspacing="4" summary="" border="0" >
<tr>
<td style="width:22px">
<p> </p>
</td>
<td align="left">
<p style="font-size:13px; margin-bottom:16px;">Bonjour {{recipient.givenName|capitalize}} {{recipient.shortFamilyName|capitalize}},</p>
<p style="font-size:13px;">Votre covoiturage régulier avec {{sender.givenName|capitalize}} {{sender.shortFamilyName|capitalize}} expire dans une semaine.</p>
</td>
</tr>
</table>
</td>
</tr>
{# info trajet #}
<tr>
<td>
<table cellpadding="4" cellspacing="6" summary="" border="0">
<tr>
<td style="width:20px">
<p> </p>
</td>
<td>
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/origin.png"
style="border:0; height:19px; width:19px; background-color:transparent; vertical-align:top;"
/>
</td>
<td>
<p style="font-size:13px; color:{{api_env('EMAILS_COLOR_SECONDARY')}}"><b>{{ outwardOrigin.address.displayLabel[0] }}</b></p>
</td>
</tr>
<tr>
<td style="width:20px">
<p> </p>
</td>
<td>
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/destination.png"
style="border:0; height:19px; width:19px; background-color:transparent; vertical-align:top;"
/>
</td>
<td>
<p style="font-size:13px;"><b style="color:{{api_env('EMAILS_COLOR_PRIMARY')}};"> {{ outwardDestination.address.displayLabel[0] }}</b></p>
</td>
</tr>
</table>
</td>
</tr>
{% for schedule in ad.schedule %}
<tr>
<td>
<table cellpadding="2" cellspacing="2" summary="" border="0">
<tr>
<td style="width:30px">
<p> </p>
</td>
<td>
{% if schedule.monCheck %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/monGreen.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% else %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/monGrey.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% endif %}
</td>
<td>
{% if schedule.tueCheck %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/tueGreen.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% else %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/tueGrey.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% endif %}
</td>
<td>
{% if schedule.wedCheck %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/wedGreen.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% else %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/wedGrey.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% endif %}
</td>
<td>
{% if schedule.thuCheck %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/thuGreen.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% else %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/thuGrey.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% endif %}
</td>
<td>
{% if schedule.friCheck %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/friGreen.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% else %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/friGrey.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% endif %}
</td>
<td>
{% if schedule.satCheck %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/satGreen.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% else %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/satGrey.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% endif %}
</td>
<td>
{% if schedule.sunCheck %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/sunGreen.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% else %}
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/days/sunGrey.png"
style="border:0; height:25px; width:25px; background-color:transparent; vertical-align:top;"
/>
{% endif %}
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="2" cellspacing="2" summary="" border="0">
<tr>
<td style="width:26px">
<p> </p>
</td>
<td>
<table cellpadding="4" cellspacing="4" summary="" border="0">
<tr>
<td>
<p style="color:{{api_env('EMAILS_COLOR_PRIMARY')}}; font-size:13px;"><b>Aller</b></p>
</td>
</tr>
<tr>
<td>
{% if schedule.outwardPickUpTime == null %}
<p style="font-size:13px;"><b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">Non concerné</b></p>
{% else %}
<p style="font-size:13px;">Prise en charge à <b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">{{schedule.outwardPickUpTime|date('H:i')}}</b></p>
{% endif %}
</td>
</tr>
<tr>
<td>
{% if schedule.outwardPickUpTime == null %}
<p style="font-size:13px;"><b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">Non concerné</b></p>
{% else %}
<p style="font-size:13px;">Dépose à <b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">{{schedule.outwardDropOffTime|date('H:i')}}</b></p>
{% endif %}
</td>
</tr>
</table>
<td>
<td>
<table cellpadding="4" cellspacing="4" summary="" border="0">
<tr>
<td>
<p style="color:{{api_env('EMAILS_COLOR_PRIMARY')}}; font-size:13px;"><b>Retour</b></p>
</td>
</tr>
<tr>
<td>
{% if schedule.returnPickUpTime == null %}
<p style="font-size:13px;"><b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">Non concerné</b></p>
{% else %}
<p style="font-size:13px;">Prise en charge à <b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">{{schedule.returnPickUpTime|date('H:i')}}</b></p>
{% endif %}
</td>
</tr>
<tr>
<td>
{% if schedule.returnPickUpTime == null %}
<p style="font-size:13px;"><b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">Non concerné</b></p>
{% else %}
<p style="font-size:13px;">Dépose à <b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}};">{{schedule.returnDropOffTime|date('H:i')}}</b></p>
{% endif %}
</td>
</tr>
</table>
<td>
</tr>
</table>
{% if loop.last != true %}
<hr style="border: 0.5px solid #F0BFFF;">
{% endif %}
</td>
</tr>
{% endfor %}
{# Comment bien préparer votre covoiturage #}
<tr>
<td style="height:15px">
<p> </p>
</td>
</tr>
<tr>
<td>
<table cellpadding="2" cellspacing="2" summary="" border="0">
<tr>
<td style="width:23px">
<p> </p>
</td>
<td>
<p style="font-size:13px; text-align: justify;">Si vous souhaitez continuer à covoiturer ensemble, vous devez lui faire une <b>nouvelle demande et allonger la période du covoiturage.</b> Sans quoi, vos prochains trajets n’apparaîtront plus dans votre export de covoiturages et vous ne pourrez notamment plus payer vos trajets par carte bancaire.</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height:15px">
<p> </p>
</td>
</tr>
<tr>
<td align="center">
<table cellpadding="2" cellspacing="2" summary="" border="0">
<tr>
<td align="center" style="width:100%;">
<a href="{{api_env('EMAILS_PLATFORM_URL')}}/" style="color:{{api_env('EMAILS_COLOR_SECONDARY')}}">
<img
src="{{api_env('EMAILS_PLATFORM_URL')}}{{api_env('EMAILS_IMAGES_BASE_URL')}}/bodyAlt/buttons/newCarpool.png"
style="border:0; height:29px; width:306; background-color:transparent; vertical-align:top;"
/>
</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height:15px">
<p> </p>
</td>
</tr>
<tr>
<td style="height:15px">
<p> </p>
</td>
</tr>
<tr>
<td>
<table cellpadding="2" cellspacing="2" summary="" border="0">
<tr>
<td style="width:23px">
<p> </p>
</td>
<td align="center" style="width:100%;">
<p style="font-size:13px;"><b style="color:{{api_env('EMAILS_COLOR_SECONDARY')}}">Bon covoiturage sur {{api_env('EMAILS_PLATFORM_NAME')}}</b></p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height:15px">
<p> </p>
</td>
</tr>
</table>
{% endblock %}