mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-02-14 23:01:21 +00:00
Confirm email address is mandatory
This commit is contained in:
parent
6424b4658a
commit
1b1651c294
@ -81,7 +81,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="alert alert-warning">
|
<div class="alert alert-warning">
|
||||||
{% trans "Your team must be composed of 3 members and each member must upload its photo authorization." %}
|
{% trans "Your team must be composed of 3 members and each member must upload its photo authorization and confirm its email address." %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -101,6 +101,7 @@ class TeamDetailView(LoginRequiredMixin, DetailView):
|
|||||||
|
|
||||||
team = self.object
|
team = self.object
|
||||||
context["can_validate"] = team.students.count() >= 3 and \
|
context["can_validate"] = team.students.count() >= 3 and \
|
||||||
|
all(r.email_confirmed for r in team.students.all()) and \
|
||||||
all(r.photo_authorization for r in team.students.all()) and \
|
all(r.photo_authorization for r in team.students.all()) and \
|
||||||
team.participation.problem
|
team.participation.problem
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Corres2math\n"
|
"Project-Id-Version: Corres2math\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-10-11 16:27+0200\n"
|
"POT-Creation-Date: 2020-10-11 16:48+0200\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: Yohann D'ANELLO <yohann.danello@animath.fr>\n"
|
"Last-Translator: Yohann D'ANELLO <yohann.danello@animath.fr>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -329,10 +329,10 @@ msgstr "Soumettre mon équipe à validation"
|
|||||||
#: apps/participation/templates/participation/team_detail.html:84
|
#: apps/participation/templates/participation/team_detail.html:84
|
||||||
msgid ""
|
msgid ""
|
||||||
"Your team must be composed of 3 members and each member must upload its "
|
"Your team must be composed of 3 members and each member must upload its "
|
||||||
"photo authorization."
|
"photo authorization and confirm its email address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Votre équipe doit être composée de 3 membres et chaque membre doit envoyer "
|
"Votre équipe doit être composée de 3 membres et chaque membre doit envoyer "
|
||||||
"son autorisation de droit à l'image."
|
"son autorisation de droit à l'image et confirmé son adresse e-mail."
|
||||||
|
|
||||||
#: apps/participation/templates/participation/team_detail.html:89
|
#: apps/participation/templates/participation/team_detail.html:89
|
||||||
msgid "This team didn't ask for validation yet."
|
msgid "This team didn't ask for validation yet."
|
||||||
@ -364,25 +364,25 @@ msgstr "Vous êtes déjà dans une équipe."
|
|||||||
msgid "Join team"
|
msgid "Join team"
|
||||||
msgstr "Rejoindre une équipe"
|
msgstr "Rejoindre une équipe"
|
||||||
|
|
||||||
#: apps/participation/views.py:86 apps/participation/views.py:172
|
#: apps/participation/views.py:86 apps/participation/views.py:175
|
||||||
msgid "You are not in a team."
|
msgid "You are not in a team."
|
||||||
msgstr "Vous n'êtes pas dans une équipe."
|
msgstr "Vous n'êtes pas dans une équipe."
|
||||||
|
|
||||||
#: apps/participation/views.py:87 apps/participation/views.py:173
|
#: apps/participation/views.py:87 apps/participation/views.py:176
|
||||||
msgid "You don't participate, so you don't have any team."
|
msgid "You don't participate, so you don't have any team."
|
||||||
msgstr "Vous ne participez pas, vous n'avez donc pas d'équipe."
|
msgstr "Vous ne participez pas, vous n'avez donc pas d'équipe."
|
||||||
|
|
||||||
#: apps/participation/views.py:156 apps/registration/views.py:213
|
#: apps/participation/views.py:159 apps/registration/views.py:213
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "Photo authorization of {student}.{ext}"
|
msgid "Photo authorization of {student}.{ext}"
|
||||||
msgstr "Autorisation de droit à l'image de {student}.{ext}"
|
msgstr "Autorisation de droit à l'image de {student}.{ext}"
|
||||||
|
|
||||||
#: apps/participation/views.py:160
|
#: apps/participation/views.py:163
|
||||||
#, python-brace-format
|
#, python-brace-format
|
||||||
msgid "Photo authorizations of team {trigram}.zip"
|
msgid "Photo authorizations of team {trigram}.zip"
|
||||||
msgstr "Autorisations de droit à l'image de l'équipe {trigram}.zip"
|
msgstr "Autorisations de droit à l'image de l'équipe {trigram}.zip"
|
||||||
|
|
||||||
#: apps/participation/views.py:182
|
#: apps/participation/views.py:185
|
||||||
msgid "The team is not validated yet."
|
msgid "The team is not validated yet."
|
||||||
msgstr "L'équipe n'est pas encore validée."
|
msgstr "L'équipe n'est pas encore validée."
|
||||||
|
|
||||||
@ -515,14 +515,6 @@ msgstr ""
|
|||||||
"Un email a été envoyé. Merci de cliquer sur le lien pour activer votre "
|
"Un email a été envoyé. Merci de cliquer sur le lien pour activer votre "
|
||||||
"compte."
|
"compte."
|
||||||
|
|
||||||
#: apps/registration/templates/registration/logged_out.html:8
|
|
||||||
msgid "Thanks for spending some quality time with the Web site today."
|
|
||||||
msgstr "Merci d'avoir utilisé la plateforme des Correspondances."
|
|
||||||
|
|
||||||
#: apps/registration/templates/registration/logged_out.html:9
|
|
||||||
msgid "Log in again"
|
|
||||||
msgstr "Se reconnecter"
|
|
||||||
|
|
||||||
#: apps/registration/templates/registration/mails/email_validation_email.html:12
|
#: apps/registration/templates/registration/mails/email_validation_email.html:12
|
||||||
#: apps/registration/templates/registration/mails/email_validation_email.txt:3
|
#: apps/registration/templates/registration/mails/email_validation_email.txt:3
|
||||||
msgid "Hi"
|
msgid "Hi"
|
||||||
@ -846,6 +838,14 @@ msgstr ""
|
|||||||
msgid "Contact us"
|
msgid "Contact us"
|
||||||
msgstr "Nous contacter"
|
msgstr "Nous contacter"
|
||||||
|
|
||||||
|
#: templates/registration/logged_out.html:8
|
||||||
|
msgid "Thanks for spending some quality time with the Web site today."
|
||||||
|
msgstr "Merci d'avoir utilisé la plateforme des Correspondances."
|
||||||
|
|
||||||
|
#: templates/registration/logged_out.html:9
|
||||||
|
msgid "Log in again"
|
||||||
|
msgstr "Se reconnecter"
|
||||||
|
|
||||||
#: templates/registration/login.html:13
|
#: templates/registration/login.html:13
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user