Commit 5474ea16 by Damien Moulard

update insufficient funds mail content

parent d9c266b2
......@@ -294,7 +294,7 @@ class UserController extends AbstractController
$transaction_amount = floatval($data["montant"]);
if ($balance < $transaction_amount) {
// Send mail for insufficient funds
$subject = 'Votre tentative de paiement en Monnaie Locale Solidaire : solde insuffisant !';
$subject = $this->translator->trans('[MONNAIE ALIMENTAIRE COMMUNE] – Solde insuffisant');
$mail = (new \Swift_Message($subject))
->setFrom($this->em->getRepository(GlobalParameter::class)->val(GlobalParameter::MLC_NOTIF_EMAIL))
->setTo($adherent->getUser()->getEmail())
......@@ -302,8 +302,7 @@ class UserController extends AbstractController
$this->templating->render(
'@kohinos/email/tav/insufficient_funds.html.twig',
[
'subject' => $subject,
'montant' => $transaction_amount,
'subject' => $subject
]
),
'text/html'
......
......@@ -6,10 +6,26 @@
{% endset %}
{% block content %}
<h2 style="font-size: 18px; color: #111111; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: bold; line-height: 1.2em; margin: 40px 0 10px;">
{{ 'Solde insuffisant'|trans }}
</h2><br/>
<p>
Une transaction d'un montant de {{ montant|number_format(2) }} vous a été refusée pour cause de solde insuffisant.
{{ 'Cher-e Participant-e à la Caisse Alimentaire Commune,'|trans }}
</p>
<p>
{{ 'Nous avons enregistré une tentative de paiement en Monnaie Alimentaire Commune.'|trans }}
</p>
<p>
{{ 'L’opération n’a pas pu être validé car votre solde était insuffisant au moment de son exécution.'|trans }}
</p>
<p>
{{ 'Pour vérifier votre solde, rendez-vous dans la rubrique "Mon solde" sur le site internet de la Caisse Alimentaire Commune.'|trans }}
<br/>
{{ 'Pour toute question, nous vous invitons à vous rendre sur l’espace "Questions-Réponses".'|trans }}
</p>
<p>
{{ 'Nous restons bien entendu à votre écoute pour toute demande complémentaire.'|trans }}
</p>
<p>
{{ 'Cordialement,'|trans }}
<br/>
{{ 'La Caisse Alimentaire Commune.'|trans }}
</p>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment