1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-11-09 15:09:31 +01:00

Add distinction between scientific coach and accompanying coach

This commit is contained in:
Maxime JUST
2025-11-07 17:24:53 +01:00
parent 8af11cd56f
commit 7ae98cd64d
9 changed files with 528 additions and 437 deletions

View File

@@ -22,6 +22,7 @@ from phonenumber_field.modelfields import PhoneNumberField
from polymorphic.models import PolymorphicModel
from tfjm import helloasso
from tfjm.tokens import email_validation_token
from django.utils.html import format_html
class Registration(PolymorphicModel):
@@ -527,6 +528,23 @@ class CoachRegistration(ParticipantRegistration):
verbose_name=_("professional activity"),
)
is_scientific_coach = models.BooleanField(
default=False,
verbose_name=_("Scientific coach"),
help_text=format_html(
'{} <a href="{}" target="_blank" rel="noopener">{}</a>.',
_("Provides scientific guidance: methodology, content review, and project mentoring during the preparation phase."),
"https://tfjm.org/wp-content/uploads/2024/01/note____l_intention_des_encadrants.pdf",
_("see practical sheet"),
),
)
is_accompanying_coach = models.BooleanField(
default=False,
verbose_name=_("Accompanying coach"),
help_text=_("Accompanies the team during the weekend and stays for the entire tournament."),
)
@property
def type(self):
return _("coach")