mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 02:12:05 +01:00 
			
		
		
		
	This is TFJM², not Corres2math
This commit is contained in:
		@@ -68,7 +68,7 @@ class RequestValidationForm(forms.Form):
 | 
				
			|||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    engagement = forms.BooleanField(
 | 
					    engagement = forms.BooleanField(
 | 
				
			||||||
        label=_("I engage myself to participate to the whole \"Correspondances\"."),
 | 
					        label=_("I engage myself to participate to the whole TFJM²."),
 | 
				
			||||||
        required=True,
 | 
					        required=True,
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,7 +21,7 @@ from tfjm.matrix import Matrix, RoomPreset, RoomVisibility
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class Team(models.Model):
 | 
					class Team(models.Model):
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    The Team model represents a real team that participates to the Correspondances.
 | 
					    The Team model represents a real team that participates to the TFJM².
 | 
				
			||||||
    This only includes the registration detail.
 | 
					    This only includes the registration detail.
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    name = models.CharField(
 | 
					    name = models.CharField(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ Bonjour {{ user.registration }},
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<p>
 | 
					<p>
 | 
				
			||||||
L'équipe « {{ team.name }} » ({{ team.trigram }}) vient de demander à valider son équipe pour participer
 | 
					L'équipe « {{ team.name }} » ({{ team.trigram }}) vient de demander à valider son équipe pour participer
 | 
				
			||||||
au {{ team.participation.get_problem_display }} du TFJM² des Jeunes Mathématicien·ne·s.
 | 
					au {{ team.participation.get_problem_display }} du TFJM².
 | 
				
			||||||
Vous pouvez décider d'accepter ou de refuser l'équipe en vous rendant sur la page de l'équipe :
 | 
					Vous pouvez décider d'accepter ou de refuser l'équipe en vous rendant sur la page de l'équipe :
 | 
				
			||||||
<a href="https://{{ domain }}{% url "participation:team_detail" pk=team.pk %}">
 | 
					<a href="https://{{ domain }}{% url "participation:team_detail" pk=team.pk %}">
 | 
				
			||||||
    https://{{ domain }}{% url "participation:team_detail" pk=team.pk %}
 | 
					    https://{{ domain }}{% url "participation:team_detail" pk=team.pk %}
 | 
				
			||||||
@@ -23,7 +23,7 @@ Cordialement,
 | 
				
			|||||||
</p>
 | 
					</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<p>
 | 
					<p>
 | 
				
			||||||
L'organisation du TFJM² des Jeunes Mathématicien·ne·s
 | 
					L'organisation du TFJM²
 | 
				
			||||||
</p>
 | 
					</p>
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,10 +1,10 @@
 | 
				
			|||||||
Bonjour {{ user.registration }},
 | 
					Bonjour {{ user.registration }},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
L'équipe « {{ team.name }} » ({{ team.trigram }}) vient de demander à valider son équipe pour participer
 | 
					L'équipe « {{ team.name }} » ({{ team.trigram }}) vient de demander à valider son équipe pour participer
 | 
				
			||||||
au {{ team.participation.get_problem_display }} du TFJM² des Jeunes Mathématicien·ne·s.
 | 
					au {{ team.participation.get_problem_display }} du TFJM².
 | 
				
			||||||
Vous pouvez décider d'accepter ou de refuser l'équipe en vous rendant sur la page de l'équipe :
 | 
					Vous pouvez décider d'accepter ou de refuser l'équipe en vous rendant sur la page de l'équipe :
 | 
				
			||||||
https://{{ domain }}{% url "participation:team_detail" pk=team.pk %}
 | 
					https://{{ domain }}{% url "participation:team_detail" pk=team.pk %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Cordialement,
 | 
					Cordialement,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
L'organisation du TFJM² des Jeunes Mathématicien·ne·s
 | 
					L'organisation du TFJM²
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,6 +17,6 @@ pour plus d'informations.
 | 
				
			|||||||
<br/>
 | 
					<br/>
 | 
				
			||||||
Cordialement,<br/>
 | 
					Cordialement,<br/>
 | 
				
			||||||
<br/>
 | 
					<br/>
 | 
				
			||||||
Le comité d'organisation du TFJM² des Jeunes Mathématicien·ne·s
 | 
					Le comité d'organisation du TFJM²
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,4 +9,4 @@ N'hésitez pas à nous contacter à l'adresse contact@tfjm.org pour plus d'infor
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Cordialement,
 | 
					Cordialement,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Le comité d'organisation du TFJM² des Jeunes Mathématicien·ne·s
 | 
					Le comité d'organisation du TFJM²
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,14 +7,14 @@
 | 
				
			|||||||
<body>
 | 
					<body>
 | 
				
			||||||
Bonjour,<br/>
 | 
					Bonjour,<br/>
 | 
				
			||||||
<br/>
 | 
					<br/>
 | 
				
			||||||
Félicitations ! Votre équipe « {{ team.name }} » ({{ team.trigram }}) est désormais validée ! Vous êtes désormais apte à travailler sur
 | 
					Félicitations ! Votre équipe « {{ team.name }} » ({{ team.trigram }}) est désormais validée ! Vous êtes désormais apte
 | 
				
			||||||
votre problème. Lorsque les Correspondances auront débutées, vous pourrez soumettre votre vidéo sur la plateforme d'inscription.<br>
 | 
					à travailler sur vos problèmes. Vous pourrez ensuite envoyer vos solutions sur la plateforme.<br>
 | 
				
			||||||
Les organisateurs vous adressent ce message :<br/>
 | 
					Les organisateurs vous adressent ce message :<br/>
 | 
				
			||||||
<br/>
 | 
					<br/>
 | 
				
			||||||
{{ message }}<br />
 | 
					{{ message }}<br />
 | 
				
			||||||
<br/>
 | 
					<br/>
 | 
				
			||||||
Cordialement,<br/>
 | 
					Cordialement,<br/>
 | 
				
			||||||
<br/>
 | 
					<br/>
 | 
				
			||||||
Le comité d'organisation du TFJM² des Jeunes Mathématicien·ne·s
 | 
					Le comité d'organisation du TFJM²
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
Bonjour,
 | 
					Bonjour,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Félicitations ! Votre équipe « {{ team.name }} » ({{ team.trigram }}) est désormais validée ! Vous êtes désormais apte à travailler sur
 | 
					Félicitations ! Votre équipe « {{ team.name }} » ({{ team.trigram }}) est désormais validée ! Vous êtes désormais apte
 | 
				
			||||||
votre problème. Lorsque les Correspondances auront débutées, vous pourrez soumettre votre vidéo sur la plateforme d'inscription.
 | 
					à travailler sur vos problèmes. Vous pourrez ensuite envoyer vos solutions sur la plateforme.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Les organisateurs vous adressent ce message :
 | 
					Les organisateurs vous adressent ce message :
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -9,4 +9,4 @@ Les organisateurs vous adressent ce message :
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
Cordialement,
 | 
					Cordialement,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Le comité d'organisation du TFJM² des Jeunes Mathématicien·ne·s
 | 
					Le comité d'organisation du TFJM²
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -218,7 +218,7 @@ class TeamDetailView(LoginRequiredMixin, FormMixin, ProcessFormView, DetailView)
 | 
				
			|||||||
            mail_context = dict(user=admin.user, team=self.object, domain=Site.objects.first().domain)
 | 
					            mail_context = dict(user=admin.user, team=self.object, domain=Site.objects.first().domain)
 | 
				
			||||||
            mail_plain = render_to_string("participation/mails/request_validation.txt", mail_context)
 | 
					            mail_plain = render_to_string("participation/mails/request_validation.txt", mail_context)
 | 
				
			||||||
            mail_html = render_to_string("participation/mails/request_validation.html", mail_context)
 | 
					            mail_html = render_to_string("participation/mails/request_validation.html", mail_context)
 | 
				
			||||||
            admin.user.email_user("[Corres2math] Validation d'équipe", mail_plain, html_message=mail_html)
 | 
					            admin.user.email_user("[TFJM²] Validation d'équipe", mail_plain, html_message=mail_html)
 | 
				
			||||||
        return super().form_valid(form)
 | 
					        return super().form_valid(form)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def handle_validate_participation(self, form):
 | 
					    def handle_validate_participation(self, form):
 | 
				
			||||||
@@ -238,7 +238,7 @@ class TeamDetailView(LoginRequiredMixin, FormMixin, ProcessFormView, DetailView)
 | 
				
			|||||||
            mail_context = dict(team=self.object, message=form.cleaned_data["message"])
 | 
					            mail_context = dict(team=self.object, message=form.cleaned_data["message"])
 | 
				
			||||||
            mail_plain = render_to_string("participation/mails/team_validated.txt", mail_context)
 | 
					            mail_plain = render_to_string("participation/mails/team_validated.txt", mail_context)
 | 
				
			||||||
            mail_html = render_to_string("participation/mails/team_validated.html", mail_context)
 | 
					            mail_html = render_to_string("participation/mails/team_validated.html", mail_context)
 | 
				
			||||||
            send_mail("[Corres2math] Équipe validée", mail_plain, None, [self.object.email], html_message=mail_html)
 | 
					            send_mail("[TFJM²] Équipe validée", mail_plain, None, [self.object.email], html_message=mail_html)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            get_sympa_client().subscribe(self.object.email, "equipes", False, f"Equipe {self.object.name}")
 | 
					            get_sympa_client().subscribe(self.object.email, "equipes", False, f"Equipe {self.object.name}")
 | 
				
			||||||
            get_sympa_client().unsubscribe(self.object.email, "equipes-non-valides", False)
 | 
					            get_sympa_client().unsubscribe(self.object.email, "equipes-non-valides", False)
 | 
				
			||||||
@@ -248,7 +248,7 @@ class TeamDetailView(LoginRequiredMixin, FormMixin, ProcessFormView, DetailView)
 | 
				
			|||||||
            mail_context = dict(team=self.object, message=form.cleaned_data["message"])
 | 
					            mail_context = dict(team=self.object, message=form.cleaned_data["message"])
 | 
				
			||||||
            mail_plain = render_to_string("participation/mails/team_not_validated.txt", mail_context)
 | 
					            mail_plain = render_to_string("participation/mails/team_not_validated.txt", mail_context)
 | 
				
			||||||
            mail_html = render_to_string("participation/mails/team_not_validated.html", mail_context)
 | 
					            mail_html = render_to_string("participation/mails/team_not_validated.html", mail_context)
 | 
				
			||||||
            send_mail("[Corres2math] Équipe non validée", mail_plain, None, [self.object.email],
 | 
					            send_mail("[TFJM²] Équipe non validée", mail_plain, None, [self.object.email],
 | 
				
			||||||
                      html_message=mail_html)
 | 
					                      html_message=mail_html)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            form.add_error(None, _("You must specify if you validate the registration or not."))
 | 
					            form.add_error(None, _("You must specify if you validate the registration or not."))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,7 +45,7 @@ class Registration(PolymorphicModel):
 | 
				
			|||||||
        The account got created or the email got changed.
 | 
					        The account got created or the email got changed.
 | 
				
			||||||
        Send an email that contains a link to validate the address.
 | 
					        Send an email that contains a link to validate the address.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        subject = "[Corres2math] " + str(_("Activate your Correspondances account"))
 | 
					        subject = "[TFJM²] " + str(_("Activate your TFJM² account"))
 | 
				
			||||||
        token = email_validation_token.make_token(self.user)
 | 
					        token = email_validation_token.make_token(self.user)
 | 
				
			||||||
        uid = urlsafe_base64_encode(force_bytes(self.user.pk))
 | 
					        uid = urlsafe_base64_encode(force_bytes(self.user.pk))
 | 
				
			||||||
        site = Site.objects.first()
 | 
					        site = Site.objects.first()
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -13,7 +13,7 @@
 | 
				
			|||||||
</p>
 | 
					</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<p>
 | 
					<p>
 | 
				
			||||||
    {% trans "You recently registered on the Correspondances platform. Please click on the link below to confirm your registration." %}
 | 
					    {% trans "You recently registered on the TFJM² platform. Please click on the link below to confirm your registration." %}
 | 
				
			||||||
</p>
 | 
					</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<p>
 | 
					<p>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% trans "Hi" %} {{ user.username }},
 | 
					{% trans "Hi" %} {{ user.username }},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{% trans "You recently registered on the Correspondances platform. Please click on the link below to confirm your registration." %}
 | 
					{% trans "You recently registered on the TFJM² platform. Please click on the link below to confirm your registration." %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=token %}
 | 
					https://{{ domain }}{% url 'registration:email_validation' uidb64=uid token=token %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -113,7 +113,7 @@ msgid "No team was found with this access code."
 | 
				
			|||||||
msgstr "Aucune équipe n'a été trouvée avec ce code d'accès."
 | 
					msgstr "Aucune équipe n'a été trouvée avec ce code d'accès."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: apps/participation/forms.py:71
 | 
					#: apps/participation/forms.py:71
 | 
				
			||||||
msgid "I engage myself to participate to the whole \"Correspondances\"."
 | 
					msgid "I engage myself to participate to the whole TFJM²."
 | 
				
			||||||
msgstr "Je m'engage à participer à l'intégralité du TFJM²."
 | 
					msgstr "Je m'engage à participer à l'intégralité du TFJM²."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: apps/participation/forms.py:86
 | 
					#: apps/participation/forms.py:86
 | 
				
			||||||
@@ -1003,7 +1003,7 @@ msgid "email confirmed"
 | 
				
			|||||||
msgstr "email confirmé"
 | 
					msgstr "email confirmé"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: apps/registration/models.py:48
 | 
					#: apps/registration/models.py:48
 | 
				
			||||||
msgid "Activate your Correspondances account"
 | 
					msgid "Activate your TFJM² account"
 | 
				
			||||||
msgstr "Activez votre compte du TFJM²"
 | 
					msgstr "Activez votre compte du TFJM²"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: apps/registration/models.py:95
 | 
					#: apps/registration/models.py:95
 | 
				
			||||||
@@ -1162,7 +1162,7 @@ msgstr "Bonjour"
 | 
				
			|||||||
#: apps/registration/templates/registration/mails/email_validation_email.html:16
 | 
					#: apps/registration/templates/registration/mails/email_validation_email.html:16
 | 
				
			||||||
#: apps/registration/templates/registration/mails/email_validation_email.txt:5
 | 
					#: apps/registration/templates/registration/mails/email_validation_email.txt:5
 | 
				
			||||||
msgid ""
 | 
					msgid ""
 | 
				
			||||||
"You recently registered on the Correspondances platform. Please click on the "
 | 
					"You recently registered on the TFJM² platform. Please click on the "
 | 
				
			||||||
"link below to confirm your registration."
 | 
					"link below to confirm your registration."
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
"Vous vous êtes inscrits sur la plateforme du TFJM². Merci de cliquer sur le "
 | 
					"Vous vous êtes inscrits sur la plateforme du TFJM². Merci de cliquer sur le "
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
{% block content %}
 | 
					{% block content %}
 | 
				
			||||||
    <p>
 | 
					    <p>
 | 
				
			||||||
    La plateforme d'inscription du TFJM² des Jeunes Mathématiciennes a été développée entre 2019 et 2021
 | 
					    La plateforme d'inscription du TFJM² a été développée entre 2019 et 2021
 | 
				
			||||||
    par Yohann D'ANELLO, bénévole pour l'association Animath. Elle est vouée à être utilisée par les participants
 | 
					    par Yohann D'ANELLO, bénévole pour l'association Animath. Elle est vouée à être utilisée par les participants
 | 
				
			||||||
    pour intéragir avec les organisateurs et les autres participants.
 | 
					    pour intéragir avec les organisateurs et les autres participants.
 | 
				
			||||||
    </p>
 | 
					    </p>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user