mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:52:17 +01:00 
			
		
		
		
	Prepare mails for payment confirmations and reminders
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -0,0 +1,48 @@
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="fr">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <title></title>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<body>
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "Hi" %} {{ user.registration }},
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% blocktrans trimmed with amount=payment.amount team=payment.team.trigram %}
 | 
			
		||||
        We successfully received the payment of {{ amount }} € for the TFJM² registration in the team {{ team }}!
 | 
			
		||||
    {% endblocktrans %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "Your registration is now fully completed, and you can work on your solutions." %}
 | 
			
		||||
    {% trans "Be sure first that other members of your team also pay their registration." %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "As a reminder, here are the following important dates:" %}
 | 
			
		||||
    <ul>
 | 
			
		||||
    <li>{% trans "Deadline to send the solutions:" %} {{ payment.tournament.solution_limit|date }}</li>
 | 
			
		||||
    <li>{% trans "Problems draw:" %} {{ payment.tournament.solutions_draw|date }}</li>
 | 
			
		||||
    <li>{% trans "Tournament dates:" %} {% trans "From" %} {{ payment.tournament.start|date }} {% trans "to" %} {{ payment.tournament.end|date }}</li>
 | 
			
		||||
    </ul>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "Please note that these dates may be subject to change. If your local organizers gave you different dates, trust them." %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "NB: This mail don't represent a payment receipt. The payer should receive a mail from Hello Asso. If it is not the case, please contact us if necessary" %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "The TFJM² team." %}<br>
 | 
			
		||||
</p>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -0,0 +1,23 @@
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
{% trans "Hi" %} {{ user.registration }},
 | 
			
		||||
 | 
			
		||||
{% blocktrans trimmed with amount=payment.amount team=payment.team.trigram tournament=payment.tournament.name %}
 | 
			
		||||
We successfully received the payment of {{ amount }} € for the TFJM² registration in the team {{ team }} for the tournament {{ tournament }}!
 | 
			
		||||
{% endblocktrans %}
 | 
			
		||||
 | 
			
		||||
{% trans "Your registration is now fully completed, and you can work on your solutions." %}
 | 
			
		||||
{% trans "Be sure first that other members of your team also pay their registration." %}
 | 
			
		||||
 | 
			
		||||
{% trans "As a reminder, here are the following important dates:" %}
 | 
			
		||||
* {% trans "Deadline to send the solutions:" %} {{ payment.tournament.solution_limit|date }}
 | 
			
		||||
* {% trans "Problems draw:" %} {{ payment.tournament.solutions_draw|date }}
 | 
			
		||||
* {% trans "Tournament dates:" %} {% trans "From" %} {{ payment.tournament.start|date }} {% trans "to" %} {{ payment.tournament.end|date }}
 | 
			
		||||
 | 
			
		||||
{% trans "Please note that these dates may be subject to change. If your local organizers gave you different dates, trust them." %}
 | 
			
		||||
 | 
			
		||||
{% trans "NB: This mail don't represent a payment receipt. The payer should receive a mail from Hello Asso. If it is not the case, please contact us if necessary" %}
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
{% trans "The TFJM² team" %}
 | 
			
		||||
 | 
			
		||||
@@ -0,0 +1,55 @@
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html lang="fr">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <title></title>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<body>
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "Hi" %} {{ user.registration }},
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% blocktrans trimmed with amount=payment.amount team=payment.team.trigram tournament=payment.tournament %}
 | 
			
		||||
    You are registered for the TFJM² of {{ tournament }}. Your team {{ team }} has been successfully validated.
 | 
			
		||||
    To end your inscription, you must pay the amount of {{ amount }} €.
 | 
			
		||||
    {% endblocktrans %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% if payment.grouped %}
 | 
			
		||||
        {% trans "This price includes the registrations of all members of your team." %}
 | 
			
		||||
    {% endif %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "You can pay by credit card or by bank transfer. You can read full instructions on the payment page:" %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    <a href="https://{{ domain }}{% url "registration.update_payment" pk=payment.pk %}">
 | 
			
		||||
        https://{{ domain }}{% url "registration.update_payment" pk=payment.pk %}
 | 
			
		||||
    </a>
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "If you have a scholarship, then the registration is free for you. You must then upload it on the payment page using the above link." %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "It is also possible to allow an external person (your parents, your school, etc.) to pay for you with credit card. Instructions are also available on the payment page." %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "If you have any problem, feel free to contact us." %}
 | 
			
		||||
</p>
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
<p>
 | 
			
		||||
    {% trans "The TFJM² team." %}<br>
 | 
			
		||||
</p>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
@@ -0,0 +1,25 @@
 | 
			
		||||
{% load i18n %}
 | 
			
		||||
 | 
			
		||||
{% trans "Hi" %} {{ user.registration }},
 | 
			
		||||
 | 
			
		||||
{% blocktrans trimmed with amount=payment.amount team=payment.team.trigram tournament=payment.tournament %}
 | 
			
		||||
You are registered for the TFJM² of {{ tournament }}. Your team {{ team }} has been successfully validated.
 | 
			
		||||
To end your inscription, you must pay the amount of {{ amount }} €.
 | 
			
		||||
{% endblocktrans %}
 | 
			
		||||
 | 
			
		||||
{% if payment.grouped %}
 | 
			
		||||
{% trans "This price includes the registrations of all members of your team." %}
 | 
			
		||||
{% endif %}
 | 
			
		||||
 | 
			
		||||
{% trans "You can pay by credit card or by bank transfer. You can read full instructions on the payment page:" %}
 | 
			
		||||
 | 
			
		||||
https://{{ domain }}{% url "registration.update_payment" pk=payment.pk %}
 | 
			
		||||
 | 
			
		||||
{% trans "If you have a scholarship, then the registration is free for you. You must then upload it on the payment page using the above link." %}
 | 
			
		||||
 | 
			
		||||
{% trans "It is also possible to allow an external person (your parents, your school, etc.) to pay for you with credit card. Instructions are also available on the payment page." %}
 | 
			
		||||
 | 
			
		||||
{% trans "If you have any problem, feel free to contact us." %}
 | 
			
		||||
 | 
			
		||||
--
 | 
			
		||||
The TFJM² team
 | 
			
		||||
		Reference in New Issue
	
	Block a user