{# CAREFUL : Some client might need to replicate this template #} {% extends 'communication/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 %} {% if ad.results[0].frequency == 2 %} {% endif %}

VOUS AVEZ UNE DEMANDE DE COVOITURAGE !


Bonjour {{recipient.givenName|capitalize}} {{recipient.shortFamilyName|capitalize}}

{{sender.givenName|capitalize}} {{sender.shortFamilyName|capitalize}} vous sollicite pour un covoiturage.

{% if ad.results[0].frequency == 1 %}

Récapitulatif de la demande de covoiturage occasionnel le {{ ad.results[0].date|date("d/m/Y") }}:

{% else %}

Récapitulatif de la demande de covoiturage régulier du {{ ad.results[0].startDate|date("d/m/Y") }} au {{ ad.results[0].toDate|date("d/m/Y") }} :

{% endif %}
Avatar
trajet

{{ outwardOrigin.address.displayLabel[0] }}

{{ outwardDestination.address.displayLabel[0] }}

{% if (result.outward and result.outward.monCheck) or (result.return and result.return.monCheck) %}
Lu
{% else %}
Lu
{% endif %}
{% if (result.outward and result.outward.tueCheck) or (result.return and result.return.tueCheck) %}
Ma
{% else %}
Ma
{% endif %}
{% if (result.outward and result.outward.wedCheck) or (result.return and result.return.wedCheck) %}
Me
{% else %}
Me
{% endif %}
{% if (result.outward and result.outward.thuCheck) or (result.return and result.return.thuCheck) %}
Je
{% else %}
Je
{% endif %}
{% if (result.outward and result.outward.friCheck) or (result.return and result.return.friCheck) %}
Ve
{% else %}
Ve
{% endif %}
{% if (result.outward and result.outward.satCheck) or (result.return and result.return.satCheck) %}
Sa
{% else %}
Sa
{% endif %}
{% if (result.outward and result.outward.sunCheck) or (result.return and result.return.sunCheck) %}
Di
{% else %}
Di
{% endif %}
{% if result.outward %} {% endif %} {% if result.return %} {% endif %} {% if result.outward %} {% endif %} {% if result.return %} {% endif %}

ALLER

 

RETOUR

{% if result.outward.multipleTimes %}

Horaires multiples

{% else %}

Prise en charge à {{outwardOrigin.time|date('H:i')}}

Dépose à {{outwardDestination.time|date('H:i')}}

{% endif %}
  {% if result.return.multipleTimes %}

Horaires multiples

{% else %}

Prise en charge à {{returnOrigin.time|date('H:i')}}

Dépose à {{returnDestination.time|date('H:i')}}

{% endif %}

Place(s) réservée(s) : {{ad.results[0].seats}}

Prix indicatif : {{ad.results[0].roundedPrice}}

Cliquez ici pour répondre à cette demande de covoiturage via votre messagerie {{ api_env('EMAILS_PLATFORM_NAME') }}.

{% endblock %}