mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2024-12-05 02:06:52 +00:00
Add some popups
This commit is contained in:
parent
1a56725795
commit
369c9e2fa2
1
apps/eastereggs/__init__.py
Normal file
1
apps/eastereggs/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
default_app_config = 'eastereggs.apps.EastereggsConfig'
|
5
apps/eastereggs/apps.py
Normal file
5
apps/eastereggs/apps.py
Normal file
@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class EastereggsConfig(AppConfig):
|
||||
name = 'eastereggs'
|
0
apps/eastereggs/migrations/__init__.py
Normal file
0
apps/eastereggs/migrations/__init__.py
Normal file
19
apps/eastereggs/templates/eastereggs/xp.html
Normal file
19
apps/eastereggs/templates/eastereggs/xp.html
Normal file
@ -0,0 +1,19 @@
|
||||
{% extends "index.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div id="index-content"></div>
|
||||
{% include "eastereggs/xp_modal.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block extrajavascript %}
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$("#index-content").load("{% url "index" %} #content");
|
||||
function displayModal() {
|
||||
$("#xpModal").modal('toggle');
|
||||
setTimeout(displayModal, 400);
|
||||
}
|
||||
displayModal();
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
20
apps/eastereggs/templates/eastereggs/xp_modal.html
Normal file
20
apps/eastereggs/templates/eastereggs/xp_modal.html
Normal file
@ -0,0 +1,20 @@
|
||||
{% load crispy_forms_filters i18n %}
|
||||
|
||||
<div id="xpModal" class="modal fade" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">{% trans "Error" %}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{% trans "This task failed successfully." %}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
8
apps/eastereggs/urls.py
Normal file
8
apps/eastereggs/urls.py
Normal file
@ -0,0 +1,8 @@
|
||||
from django.urls import path
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
app_name = "eastereggs"
|
||||
|
||||
urlpatterns = [
|
||||
path("xp/", TemplateView.as_view(template_name="eastereggs/xp.html")),
|
||||
]
|
@ -60,6 +60,7 @@ INSTALLED_APPS = [
|
||||
'rest_framework',
|
||||
'rest_framework.authtoken',
|
||||
|
||||
'eastereggs',
|
||||
'registration',
|
||||
'participation',
|
||||
]
|
||||
|
@ -29,6 +29,8 @@ urlpatterns = [
|
||||
path('api/', include('api.urls')),
|
||||
path('participation/', include('participation.urls')),
|
||||
path('registration/', include('registration.urls')),
|
||||
|
||||
path('', include('eastereggs.urls')),
|
||||
]
|
||||
|
||||
handler400 = bad_request
|
||||
|
@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Corres2math\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2020-09-22 20:31+0200\n"
|
||||
"POT-Creation-Date: 2020-09-22 21:19+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: Yohann D'ANELLO <yohann.danello@animath.fr>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@ -21,6 +21,21 @@ msgstr ""
|
||||
msgid "API"
|
||||
msgstr "API"
|
||||
|
||||
#: apps/eastereggs/templates/eastereggs/xp_modal.html:7
|
||||
msgid "Error"
|
||||
msgstr "Erreur"
|
||||
|
||||
#: apps/eastereggs/templates/eastereggs/xp_modal.html:13
|
||||
msgid "This task failed successfully."
|
||||
msgstr "Cette tâche a échoué avec succès."
|
||||
|
||||
#: apps/eastereggs/templates/eastereggs/xp_modal.html:16
|
||||
#: apps/participation/templates/participation/create_team_modal.html:16
|
||||
#: apps/participation/templates/participation/join_team_modal.html:16
|
||||
#: apps/registration/templates/registration/login_modal.html:16
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
#: apps/logs/apps.py:11
|
||||
msgid "Logs"
|
||||
msgstr "Logs"
|
||||
@ -195,30 +210,26 @@ msgstr "vidéo"
|
||||
msgid "videos"
|
||||
msgstr "vidéos"
|
||||
|
||||
#: apps/participation/templates/participation/create_team.html:10
|
||||
#: apps/participation/templates/participation/create_team.html:11
|
||||
#: apps/participation/templates/participation/create_team_modal.html:15
|
||||
msgid "Create"
|
||||
msgstr "Créer"
|
||||
|
||||
#: apps/participation/templates/participation/create_team_modal.html:8
|
||||
#: templates/base.html:75
|
||||
#: apps/participation/views.py:12 templates/base.html:75
|
||||
msgid "Create team"
|
||||
msgstr "Créer une équipe"
|
||||
|
||||
#: apps/participation/templates/participation/create_team_modal.html:16
|
||||
#: apps/participation/templates/participation/join_team_modal.html:16
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
#: apps/participation/templates/participation/join_team_modal.html:8
|
||||
#: templates/base.html:80
|
||||
msgid "Join team"
|
||||
msgstr "Rejoindre une équipe"
|
||||
|
||||
#: apps/participation/templates/participation/join_team.html:11
|
||||
#: apps/participation/templates/participation/join_team_modal.html:15
|
||||
msgid "Join"
|
||||
msgstr "Rejoindre"
|
||||
|
||||
#: apps/participation/templates/participation/join_team_modal.html:8
|
||||
#: apps/participation/views.py:19 templates/base.html:80
|
||||
msgid "Join team"
|
||||
msgstr "Rejoindre une équipe"
|
||||
|
||||
#: apps/registration/forms.py:11
|
||||
msgid "role"
|
||||
msgstr "rôle"
|
||||
@ -353,27 +364,14 @@ msgstr "Merci d'avoir utilisé la plateforme des Correspondances."
|
||||
msgid "Log in again"
|
||||
msgstr "Se reconnecter"
|
||||
|
||||
#: apps/registration/templates/registration/login.html:7
|
||||
#: apps/registration/templates/registration/login.html:8
|
||||
#: apps/registration/templates/registration/login.html:22
|
||||
#: apps/registration/templates/registration/login_modal.html:8
|
||||
#: apps/registration/templates/registration/login_modal.html:15
|
||||
#: apps/registration/templates/registration/password_reset_complete.html:10
|
||||
#: templates/base.html:105
|
||||
#: templates/base.html:106 templates/registration/login.html:7
|
||||
#: templates/registration/login.html:8 templates/registration/login.html:25
|
||||
msgid "Log in"
|
||||
msgstr "Connexion"
|
||||
|
||||
#: apps/registration/templates/registration/login.html:13
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You are authenticated as %(user)s, but are not authorized to access this "
|
||||
"page. Would you like to login to a different account?"
|
||||
msgstr ""
|
||||
"Vous êtes connectés en tant que %(user)s, mais n'êtes pas autorisés à "
|
||||
"accéder à cette page. Voulez-vous vous reconnecter avec un autre compte ?"
|
||||
|
||||
#: apps/registration/templates/registration/login.html:23
|
||||
msgid "Forgotten your password or username?"
|
||||
msgstr "Mot de passe oublié ?"
|
||||
|
||||
#: apps/registration/templates/registration/mails/email_validation_email.html:12
|
||||
#: apps/registration/templates/registration/mails/email_validation_email.txt:3
|
||||
msgid "Hi"
|
||||
@ -502,11 +500,11 @@ msgstr "Mail de confirmation de l'adresse mail envoyé"
|
||||
msgid "Resend email validation link"
|
||||
msgstr "Renvoyé le lien de validation de l'adresse mail"
|
||||
|
||||
#: corres2math/settings.py:148
|
||||
#: corres2math/settings.py:149
|
||||
msgid "English"
|
||||
msgstr "Anglais"
|
||||
|
||||
#: corres2math/settings.py:149
|
||||
#: corres2math/settings.py:150
|
||||
msgid "French"
|
||||
msgstr "Français"
|
||||
|
||||
@ -583,14 +581,27 @@ msgstr "Retourner à l'interface administrateur"
|
||||
msgid "Register"
|
||||
msgstr "S'inscrire"
|
||||
|
||||
#: templates/base.html:109
|
||||
#: templates/base.html:111
|
||||
msgid "Log out"
|
||||
msgstr "Déconnexion"
|
||||
|
||||
#: templates/base.html:133
|
||||
#: templates/base.html:137
|
||||
msgid "Contact us"
|
||||
msgstr "Nous contacter"
|
||||
|
||||
#: templates/base.html:156
|
||||
#: templates/base.html:160
|
||||
msgid "Back to top"
|
||||
msgstr "Retour en haut"
|
||||
|
||||
#: templates/registration/login.html:13
|
||||
#, python-format
|
||||
msgid ""
|
||||
"You are authenticated as %(user)s, but are not authorized to access this "
|
||||
"page. Would you like to login to a different account?"
|
||||
msgstr ""
|
||||
"Vous êtes connectés en tant que %(user)s, mais n'êtes pas autorisés à "
|
||||
"accéder à cette page. Voulez-vous vous reconnecter avec un autre compte ?"
|
||||
|
||||
#: templates/registration/login.html:23
|
||||
msgid "Forgotten your password or username?"
|
||||
msgstr "Mot de passe oublié ?"
|
||||
|
@ -117,9 +117,11 @@
|
||||
<div class="container-fluid my-3" style="max-width: 1600px;">
|
||||
{% block contenttitle %}<h1>{{ title }}</h1>{% endblock %}
|
||||
<div id="messages"></div>
|
||||
{% block content %}
|
||||
<p>Default content...</p>
|
||||
{% endblock content %}
|
||||
<div id="content">
|
||||
{% block content %}
|
||||
<p>Default content...</p>
|
||||
{% endblock content %}
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user