From 07e13ea6eefd4302432370818f7ab11e99fccc60 Mon Sep 17 00:00:00 2001 From: Maxime JUST Date: Sun, 16 Nov 2025 10:39:23 +0100 Subject: [PATCH] Add date Strasbourg --- locale/fr/LC_MESSAGES/django.po | 4 ++-- registration/forms.py | 12 +++++++----- tfjm/templates/messages.html | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index c41081b..5d9c338 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -4865,14 +4865,14 @@ msgstr "Dates en attentes" #: tfjm/templates/messages.html:6 msgid "" -"Since the dates for the tournaments in Bordeaux, Strasbourg, Metz and " +"Since the dates for the tournaments in Bordeaux, Rennes, Metz and " "Occitanie have not yet been set, we kindly invite the teams concerned to " "wait a little longer. If you wish, you may register for another tournament " "and send us an email to let us know of your interest; we will keep you " "informed as soon as the final dates are confirmed.\n" msgstr "" -"Les dates des tournois de Bordeaux, Strasbourg, Metz et Occitanie n’étant pas " +"Les dates des tournois de Bordeaux, Rennes, Metz et Occitanie n’étant pas " "encore fixées, nous invitons pour le moment les équipes de ces tournois à " "patienter. Vous pouvez si vous le souhaitez, vous inscrire ailleurs et nous " "envoyer un mail pour nous informer de votre intérêt : nous vous tiendrons " diff --git a/registration/forms.py b/registration/forms.py index c9583b4..1bd9b1f 100644 --- a/registration/forms.py +++ b/registration/forms.py @@ -253,7 +253,8 @@ class CoachRegistrationForm(forms.ModelForm): """ ACCOMPANYING_CONFIRM_CHOICES = [ ("presence", _("I undertake to be present throughout the entire tournament weekend alongside the team (including overnight stays).")), - ("rules", _("I undertake to respond to the team's (non-mathematical) problems and not to hesitate to discuss them with the tournament organisers, who will be able to help.")), + ("rules", _("I undertake to respond to the team's (non-mathematical) problems and not to hesitate to discuss them with the tournament " + "organisers, who will be able to help.")), ("cancelling", _("In case of absence, I undertake to notify the organisers as soon as possible, providing a replacement if possible.")), ] @@ -263,6 +264,7 @@ class CoachRegistrationForm(forms.ModelForm): choices=ACCOMPANYING_CONFIRM_CHOICES, label=_("Responsabilities of accompanying coaches") ) + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if not settings.SUGGEST_ANIMATH: @@ -270,10 +272,10 @@ class CoachRegistrationForm(forms.ModelForm): class Meta: model = CoachRegistration - fields = ('team', 'is_scientific_coach', 'is_accompanying_coach', 'confirm_accompanying', 'gender', 'address', 'zip_code', 'city', 'country', 'phone_number', - 'last_degree', 'professional_activity', 'health_issues', 'housing_constraints', - 'give_contact_to_animath', 'email_confirmed') - + fields = ('team', 'is_scientific_coach', 'is_accompanying_coach', 'confirm_accompanying', 'gender', 'address', + 'zip_code', 'city', 'country', 'phone_number', 'last_degree', 'professional_activity', 'health_issues', + 'housing_constraints', 'give_contact_to_animath', 'email_confirmed') + def clean(self): cleaned = super().clean() if cleaned.get("is_accompanying_coach"): diff --git a/tfjm/templates/messages.html b/tfjm/templates/messages.html index 600c7e8..ac8340f 100644 --- a/tfjm/templates/messages.html +++ b/tfjm/templates/messages.html @@ -3,7 +3,7 @@ {% load i18n %}

{% trans "Dates pending" %}

-

{% blocktrans %}Since the dates for the tournaments in Bordeaux, Strasbourg, Metz and Occitanie have not yet been set, we kindly invite the teams concerned to wait a little longer. If you wish, you may register for another tournament and send us an email to let us know of your interest; we will keep you informed as soon as the final dates are confirmed. +

{% blocktrans %}Since the dates for the tournaments in Bordeaux, Rennes, Metz and Occitanie have not yet been set, we kindly invite the teams concerned to wait a little longer. If you wish, you may register for another tournament and send us an email to let us know of your interest; we will keep you informed as soon as the final dates are confirmed. {% endblocktrans %}