mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-24 19:20:29 +02:00
Send mail to users when the note balance is negative
This commit is contained in:
44
templates/note/mails/negative_balance.html
Normal file
44
templates/note/mails/negative_balance.html
Normal file
@ -0,0 +1,44 @@
|
||||
{% load pretty_money %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Passage en négatif (compte n°{{ note.user.pk }})</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Bonjour {{ note.user.first_name }} {{ note.user.last_name }},
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Ce mail t'a été envoyé parce que le solde de ta Note Kfet {{ note }} est négatif !
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Ton solde actuel est de {{ note.balance|pretty_money }}.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Par ailleurs, le BDE ne sert pas d'alcool aux adhérents dont le solde
|
||||
est inférieur à 0 € depuis plus de 24h.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Si tu ne comprends pas ton solde, tu peux consulter ton historique
|
||||
sur <a href="{% url "member:user_detail" pk=note.user.pk %}">ton compte</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Tu peux venir recharger ta note rapidement à la Kfet, ou envoyer un mail à
|
||||
la trésorerie du BdE (<a href="mailto:tresorerie.bde@lists.crans.org">tresorerie.bde@lists.crans.org</a>)
|
||||
pour payer par virement bancaire.
|
||||
</p>
|
||||
|
||||
--
|
||||
<p>
|
||||
Le BDE<br>
|
||||
Mail généré par la Note Kfet le {% now "j F Y à H:i:s" %}
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
23
templates/note/mails/negative_balance.txt
Normal file
23
templates/note/mails/negative_balance.txt
Normal file
@ -0,0 +1,23 @@
|
||||
{% load pretty_money %}
|
||||
|
||||
Bonjour {{ note.user.first_name }} {{ note.user.last_name }},
|
||||
|
||||
Ce mail t'a été envoyé parce que le solde de ta Note Kfet
|
||||
{{ note }} est négatif !
|
||||
|
||||
Ton solde actuel est de {{ note.balance|pretty_money }}.
|
||||
|
||||
Par ailleurs, le BDE ne sert pas d'alcool aux adhérents dont le solde
|
||||
est inférieur à 0 € depuis plus de 24h.
|
||||
|
||||
Si tu ne comprends pas ton solde, tu peux consulter ton historique
|
||||
sur ton compte {% url "member:user_detail" pk=note.user.pk %}
|
||||
|
||||
Tu peux venir recharger ta note rapidement à la Kfet, ou envoyer un mail à
|
||||
la trésorerie du BdE (tresorerie.bde@lists.crans.org) pour payer par
|
||||
virement bancaire.
|
||||
|
||||
--
|
||||
Le BDE
|
||||
|
||||
Mail généré par la Note Kfet le {% now "j F Y à H:i:s" %}
|
41
templates/note/mails/negative_notes_report.html
Normal file
41
templates/note/mails/negative_notes_report.html
Normal file
@ -0,0 +1,41 @@
|
||||
{% load pretty_money %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>[Note Kfet] Liste des négatifs</title>
|
||||
</head>
|
||||
<body>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Prénom</th>
|
||||
<th>Pseudo</th>
|
||||
<th>Email</th>
|
||||
<th>Solde</th>
|
||||
<th>Durée</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for note in notes %}
|
||||
<tr>
|
||||
<td>{{ note.user.last_name }}</td>
|
||||
<td>{{ note.user.first_name }}</td>
|
||||
<td>{{ note.user.username }}</td>
|
||||
<td>{{ note.user.email }}</td>
|
||||
<td>{{ note.balance|pretty_money }}</td>
|
||||
<td>{{ note.last_negative_duration }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
--
|
||||
<p>
|
||||
Le BDE<br>
|
||||
Mail généré par la Note Kfet le {% now "j F Y à H:i:s" %}
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
12
templates/note/mails/negative_notes_report.txt
Normal file
12
templates/note/mails/negative_notes_report.txt
Normal file
@ -0,0 +1,12 @@
|
||||
{% load pretty_money %}
|
||||
|
||||
Nom | Prénom | Pseudo | Email | Solde | Durée
|
||||
---------------------+------------+-----------------+-----------------------------------+----------+-----------
|
||||
{% for note in notes %}
|
||||
{{ note.user.last_name }} | {{ note.user.first_name }} | {{ note.user.username }} | {{ note.user.email }} | {{ note.balance|pretty_money }} | {{ note.last_negative_duration }}
|
||||
{% endfor %}
|
||||
|
||||
--
|
||||
Le BDE
|
||||
|
||||
Mail généré par la Note Kfet le {% now "j F Y à H:i:s" %}
|
@ -1,15 +1,41 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% trans "Hi" %} {{ user.username }},
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Passage en négatif (compte n°{{ note.user.pk }})</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
{% trans "You recently registered on the Note Kfet. Please click on the link below to confirm your registration." %}
|
||||
<p>
|
||||
{% trans "Hi" %} {{ user.username }},
|
||||
</p>
|
||||
|
||||
https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=token %}
|
||||
<p>
|
||||
{% trans "You recently registered on the Note Kfet. Please click on the link below to confirm your registration." %}
|
||||
</p>
|
||||
|
||||
{% trans "This link is only valid for a couple of days, after that you will need to contact us to validate your email." %}
|
||||
<p>
|
||||
<a href="https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=token %}">
|
||||
https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=token %}
|
||||
</a>
|
||||
</p>
|
||||
|
||||
{% trans "After that, you'll have to wait that someone validates your account before you can log in. You will need to pay your membership in the Kfet." %}
|
||||
<p>
|
||||
{% trans "This link is only valid for a couple of days, after that you will need to contact us to validate your email." %}
|
||||
</p>
|
||||
|
||||
{% trans "Thanks" %},
|
||||
<p>
|
||||
{% trans "After that, you'll have to wait that someone validates your account before you can log in. You will need to pay your membership in the Kfet." %}
|
||||
</p>
|
||||
|
||||
{% trans "The Note Kfet team." %}
|
||||
<p>
|
||||
{% trans "Thanks" %},
|
||||
</p>
|
||||
|
||||
--
|
||||
<p>
|
||||
{% trans "The Note Kfet team." %}
|
||||
Mail généré par la Note Kfet le {% now "j F Y à H:i:s" %}
|
||||
</p>
|
16
templates/registration/mails/email_validation_email.txt
Normal file
16
templates/registration/mails/email_validation_email.txt
Normal file
@ -0,0 +1,16 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% trans "Hi" %} {{ user.username }},
|
||||
|
||||
{% trans "You recently registered on the Note Kfet. Please click on the link below to confirm your registration." %}
|
||||
|
||||
https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=token %}
|
||||
|
||||
{% trans "This link is only valid for a couple of days, after that you will need to contact us to validate your email." %}
|
||||
|
||||
{% trans "After that, you'll have to wait that someone validates your account before you can log in. You will need to pay your membership in the Kfet." %}
|
||||
|
||||
{% trans "Thanks" %},
|
||||
|
||||
{% trans "The Note Kfet team." %}
|
||||
Mail généré par la Note Kfet le {% now "j F Y à H:i:s" %}
|
Reference in New Issue
Block a user