Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
5474ea16
Commit
5474ea16
authored
2 years ago
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update insufficient funds mail content
parent
d9c266b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
UserController.php
src/Controller/UserController.php
+2
-3
insufficient_funds.html.twig
...tes/themes/kohinos/email/tav/insufficient_funds.html.twig
+21
-4
No files found.
src/Controller/UserController.php
View file @
5474ea16
...
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
templates/themes/kohinos/email/tav/insufficient_funds.html.twig
View file @
5474ea16
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment