mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-02-12 15:41:18 +00:00
Compare commits
No commits in common. "55a727612c9e07d418d94d51561d675e654b567c" and "982b61fe03f07f822c029ab2ad9992e18be89b33" have entirely different histories.
55a727612c
...
982b61fe03
@ -1,39 +1,16 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% block extracss %}
|
||||||
|
<style>
|
||||||
{% block content %}
|
iframe {
|
||||||
<div class="alert alert-warning">
|
width: 100%;
|
||||||
{% blocktrans trimmed %}
|
height: 100vh;
|
||||||
The chat is located on the dedicated Matrix server:
|
margin: 0;
|
||||||
{% endblocktrans %}
|
padding: 0;
|
||||||
</div>
|
}
|
||||||
|
</style>
|
||||||
<div class="alert text-center">
|
{% endblock %}
|
||||||
<a class="btn btn-success" href="https://element.correspondances-maths.fr/#/room/#faq:correspondances-maths.fr" target="_blank">
|
|
||||||
<i class="fas fa-server"></i> {% trans "Access to the Matrix server" %}
|
{% block fullcontent %}
|
||||||
</a>
|
<iframe frameborder="0" src="https://element.correspondances-maths.fr/#/room/#faq:correspondances-maths.fr"></iframe>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-info">
|
|
||||||
<p>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
To connect to the server, you can select "Log in", then use your credentials of this platform to connect
|
|
||||||
with the central authentication server, then you must trust the connection between the Matrix account and the
|
|
||||||
platform. Finally, you will be able to access to the chat platform.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
You will be invited in some basic rooms. You must confirm the invitations to join channels.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
If you have any trouble, don't hesitate to contact us :)
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -22,15 +22,6 @@ class SignupForm(UserCreationForm):
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
def clean_email(self):
|
|
||||||
"""
|
|
||||||
Ensure that the email address is unique.
|
|
||||||
"""
|
|
||||||
email = self.data["email"]
|
|
||||||
if User.objects.filter(email=email).exists():
|
|
||||||
self.add_error("email", _("This email address is already used."))
|
|
||||||
return email
|
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self.fields["first_name"].required = True
|
self.fields["first_name"].required = True
|
||||||
|
@ -119,20 +119,6 @@ class TestRegistration(TestCase):
|
|||||||
self.assertRedirects(response, reverse("registration:email_validation_sent"), 302, 200)
|
self.assertRedirects(response, reverse("registration:email_validation_sent"), 302, 200)
|
||||||
self.assertTrue(User.objects.filter(email="toto@example.com").exists())
|
self.assertTrue(User.objects.filter(email="toto@example.com").exists())
|
||||||
|
|
||||||
# Email is already used
|
|
||||||
response = self.client.post(reverse("registration:signup"), data=dict(
|
|
||||||
last_name="Toto",
|
|
||||||
first_name="Toto",
|
|
||||||
email="toto@example.com",
|
|
||||||
password1="azertyuiopazertyuiop",
|
|
||||||
password2="azertyuiopazertyuiop",
|
|
||||||
role="participant",
|
|
||||||
student_class=12,
|
|
||||||
school="God",
|
|
||||||
give_contact_to_animath=False,
|
|
||||||
))
|
|
||||||
self.assertEqual(response.status_code, 200)
|
|
||||||
|
|
||||||
response = self.client.get(reverse("registration:email_validation_sent"))
|
response = self.client.get(reverse("registration:email_validation_sent"))
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
|
|
||||||
|
@ -27,11 +27,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="alert alert-danger">
|
|
||||||
Avertissement : certains rencontrent des difficultés à recevoir les mails automatiques. Merci de vérifier
|
|
||||||
régulièrement votre boîte spam, et à nous contacter en cas de problème.
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<h5 class="display-4">Comment ça marche ?</h5>
|
<h5 class="display-4">Comment ça marche ?</h5>
|
||||||
<p>
|
<p>
|
||||||
|
@ -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-12-04 01:42+0100\n"
|
"POT-Creation-Date: 2020-11-16 11:55+0100\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"
|
||||||
@ -289,40 +289,6 @@ msgstr "phase"
|
|||||||
msgid "phases"
|
msgid "phases"
|
||||||
msgstr "phases"
|
msgstr "phases"
|
||||||
|
|
||||||
#: apps/participation/templates/participation/chat.html:7
|
|
||||||
msgid "The chat is located on the dedicated Matrix server:"
|
|
||||||
msgstr "Le chat est situé sur le serveur Matrix dédié aux Correspondances :"
|
|
||||||
|
|
||||||
#: apps/participation/templates/participation/chat.html:14
|
|
||||||
msgid "Access to the Matrix server"
|
|
||||||
msgstr "Accéder au serveur Matrix"
|
|
||||||
|
|
||||||
#: apps/participation/templates/participation/chat.html:20
|
|
||||||
msgid ""
|
|
||||||
"To connect to the server, you can select \"Log in\", then use your "
|
|
||||||
"credentials of this platform to connect with the central authentication "
|
|
||||||
"server, then you must trust the connection between the Matrix account and "
|
|
||||||
"the platform. Finally, you will be able to access to the chat platform."
|
|
||||||
msgstr ""
|
|
||||||
"Pour se connecter au serveur, vous pouvez sélectionner \"Se connecter\", "
|
|
||||||
"puis utiliser vos identifiants de cette plateforme via l'authentication "
|
|
||||||
"centralisée. Vous devrez ensuite approuver la connexion entre le compte "
|
|
||||||
"Matrix et la plateforme. Enfin, vous pourrez accéder à la plateforme de chat."
|
|
||||||
|
|
||||||
#: apps/participation/templates/participation/chat.html:28
|
|
||||||
msgid ""
|
|
||||||
"You will be invited in some basic rooms. You must confirm the invitations to "
|
|
||||||
"join channels."
|
|
||||||
msgstr ""
|
|
||||||
"Vous serez invités dans quelques salons basiques. Vous devez confirmer les "
|
|
||||||
"invitations pour rejoindre les canaux."
|
|
||||||
|
|
||||||
#: apps/participation/templates/participation/chat.html:34
|
|
||||||
msgid "If you have any trouble, don't hesitate to contact us :)"
|
|
||||||
msgstr ""
|
|
||||||
"Si vous rencontrez le moindre problème, n'hésitez surtout pas à nous "
|
|
||||||
"contacter :)"
|
|
||||||
|
|
||||||
#: apps/participation/templates/participation/create_team.html:11
|
#: apps/participation/templates/participation/create_team.html:11
|
||||||
#: corres2math/templates/base.html:237
|
#: corres2math/templates/base.html:237
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
@ -785,11 +751,7 @@ msgstr "participant"
|
|||||||
msgid "coach"
|
msgid "coach"
|
||||||
msgstr "encadrant"
|
msgstr "encadrant"
|
||||||
|
|
||||||
#: apps/registration/forms.py:31
|
#: apps/registration/forms.py:68
|
||||||
msgid "This email address is already used."
|
|
||||||
msgstr "Cette adresse e-mail est déjà utilisée."
|
|
||||||
|
|
||||||
#: apps/registration/forms.py:77
|
|
||||||
msgid "The uploaded file must be a PDF, PNG of JPEG file."
|
msgid "The uploaded file must be a PDF, PNG of JPEG file."
|
||||||
msgstr "Le fichier envoyé doit être au format PDF, PNG ou JPEG."
|
msgstr "Le fichier envoyé doit être au format PDF, PNG ou JPEG."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user