{# CAREFUL : Some client might need to replicate this template #}
{% extends 'communicationAlt/fr/email/notification/base.html.twig' %}
{% block body %}
{% set ask = context.ask %}
{% set recipient = context.user %}
{% if recipient.id == ask.user.id %}
{% set deleter = ask.userRelated %}
{% else %}
{% set deleter = ask.user %}
{% endif %}
{% set ad = context.ask.ad %}
{% set result = context.result %}
{% set outwardOrigin = context.outwardOrigin %}
{% set outwardDestination = context.outwardDestination %}
{% set returnOrigin = context.returnOrigin %}
{% set returnDestination = context.returnDestination %}
Your carpool is cancelled
|
|
{# intro #}
|
Hello {{recipient.givenName|capitalize}} {{recipient.shortFamilyName|capitalize}},
{{deleter.givenName|capitalize}} {{deleter.shortFamilyName|capitalize}} has cancelled his trip and will not be able to carpool with you on the following trip :
|
|
{# info trajet #}
{% if ad is not null %}
{% if ad.results[0].frequency == 1 %}
{# ponctuel #}
|
Date of your carpool: {{ ad.results[0].date|date("d/m/Y") }}
|
|
{# to do get the price #}
Price: {{ad.results[0].roundedPrice}}€
|
|
|
|
{# to do get time #}
{{outwardOrigin.time|date('H:i')}}
|
{{ outwardOrigin.address.displayLabel[0] }}
|
|
|
{# to do get time #}
{{outwardDestination.time|date('H:i')}}
|
{{ outwardDestination.address.displayLabel[0] }}
|
|
{% else %}
{# régulier #}
|
Your regular trips: {{ ad.results[0].startDate|date("d/m/Y") }} to {{ ad.results[0].toDate|date("d/m/Y") }}
|
|
Price: {{ad.results[0].roundedPrice}}€
|
|
{% for schedule in ad.schedule %}
|
|
Outward
|
{% if schedule.outwardPickUpTime == null %}
Not concerned
{% else %}
Pick-up in {{schedule.outwardPickUpTime|date('H:i')}}
{% endif %}
|
{% if schedule.outwardPickUpTime == null %}
Not concerned
{% else %}
Drop-off in {{schedule.outwardDropOffTime|date('H:i')}}
{% endif %}
|
|
|
Return
|
{% if schedule.returnPickUpTime == null %}
Not concerned
{% else %}
Pick-up in {{schedule.returnPickUpTime|date('H:i')}}
{% endif %}
|
{% if schedule.returnPickUpTime == null %}
Not concerned
{% else %}
Drop-off in {{schedule.returnDropOffTime|date('H:i')}}
{% endif %}
|
|
|
{% if loop.last != true %}
{% endif %}
|
{% endfor %}
{% endif %}
{% endif %}
|
|
Reminder : Mobicoop does not charge upfront, payments are made hand to hand on the day of the carpool or by credit card on our interface after the day of the carpool. More about.
|
|
|
{% endblock %}