1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-11-17 12:17:51 +01:00

Fix linters + Fix translations

This commit is contained in:
Maxime JUST
2025-11-11 18:50:01 +01:00
parent c8eefb0991
commit 49729485b7
5 changed files with 293 additions and 296 deletions

View File

@@ -80,13 +80,17 @@ class ParticipationForm(forms.ModelForm):
if settings.SINGLE_TOURNAMENT:
del self.fields['tournament']
self.helper = FormHelper()
idf_text = _(
'For the tournaments in the region "Île-de-France": registration is '
'unified for each tournament. By choosing a tournament "Île-de-France", '
"you're accepting that your team may be selected for one of these tournaments. "
'In case of date conflict, please write them in your motivation letter.'
)
idf_warning_banner = f"""
<div class=\"alert alert-warning\">
<h5 class=\"alert-heading\">{_("IMPORTANT")}</h4>
{_("""For the tournaments in the region "Île-de-France": registration is
unified for each tournament. By choosing a tournament "Île-de-France",
you're accepting that your team may be selected for one of these tournaments.
In case of date conflict, please write them in your motivation letter.""")}
{idf_text}
</div>
"""
unified_registration_tournament_ids = ",".join(