1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 21:58:25 +02:00

Send payment confirmation mail after payment, and send weekly reminders for people that have not paid

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-02-23 18:02:24 +01:00
parent 6a928ee35b
commit cae1c6fdb8
11 changed files with 92 additions and 106 deletions

View File

@ -9,7 +9,7 @@
<body>
<p>
{% trans "Hi" %} {{ user.registration }},
{% trans "Hi" %} {{ registration }},
</p>
<p>
@ -28,7 +28,7 @@
<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>
<li>{% trans "Tournament dates:" %} {% trans "From" %} {{ payment.tournament.date_start|date }} {% trans "to" %} {{ payment.tournament.date_end|date }}</li>
</ul>
</p>

View File

@ -1,6 +1,5 @@
{% load i18n %}
{% trans "Hi" %} {{ user.registration }},
{% trans "Hi" %} {{ registration|safe }},
{% 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 }}!
@ -12,7 +11,7 @@ We successfully received the payment of {{ amount }} € for the TFJM² registra
{% 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 "Tournament dates:" %} {% trans "From" %} {{ payment.tournament.date_start|date }} {% trans "to" %} {{ payment.tournament.date_end|date }}
{% trans "Please note that these dates may be subject to change. If your local organizers gave you different dates, trust them." %}

View File

@ -9,7 +9,7 @@
<body>
<p>
{% trans "Hi" %} {{ user.registration }},
{% trans "Hi" %} {{ registration }},
</p>
<p>
@ -19,19 +19,19 @@
{% endblocktrans %}
</p>
<p>
{% if payment.grouped %}
{% if payment.grouped %}
<p>
{% trans "This price includes the registrations of all members of your team." %}
{% endif %}
</p>
</p>
{% endif %}
<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 href="https://{{ domain }}{% url "registration:update_payment" pk=payment.pk %}">
https://{{ domain }}{% url "registration:update_payment" pk=payment.pk %}
</a>
</p>

View File

@ -1,19 +1,16 @@
{% load i18n %}
{% trans "Hi" %} {{ user.registration }},
{% trans "Hi" %} {{ registration|safe }},
{% 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 %}
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." %}