From ce35e8f7e822f17e4b49a009f314ecc7b37395d0 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 10 Aug 2020 11:40:51 +0200 Subject: [PATCH] Make the container customizable --- apps/registration/templates/registration/login.html | 3 +++ apps/registration/templates/registration/signup.html | 5 +++-- note_kfet/templates/base.html | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/registration/templates/registration/login.html b/apps/registration/templates/registration/login.html index 7cdec5b3..d22203ef 100644 --- a/apps/registration/templates/registration/login.html +++ b/apps/registration/templates/registration/login.html @@ -4,6 +4,9 @@ SPDX-License-Identifier: GPL-2.0-or-later {% endcomment %} {% load i18n crispy_forms_tags static %} +{# Use a fixed-width container #} +{% block containertype %}container{% endblock %} + {# Change page title without displaying it in header #} {% block title %}{% trans "Log in" %}{% endblock %} {% block contenttitle %}{% endblock %} diff --git a/apps/registration/templates/registration/signup.html b/apps/registration/templates/registration/signup.html index 76f88a49..31134d73 100644 --- a/apps/registration/templates/registration/signup.html +++ b/apps/registration/templates/registration/signup.html @@ -4,9 +4,10 @@ {% load i18n %} {% block title %}{% trans "Sign up" %}{% endblock %} -{% block content %} -

{% trans "Sign up" %}

+{# Use a fixed-width container #} +{% block containertype %}container{% endblock %} +{% block content %}
{% blocktrans %}If you already signed up, your registration is taken into account. The BDE must validate your account before your can log in. You have to go to the Kfet and pay the registration fee. You must also validate your email address by following the link you received.{% endblocktrans %}
diff --git a/note_kfet/templates/base.html b/note_kfet/templates/base.html index e50defcb..461d9593 100644 --- a/note_kfet/templates/base.html +++ b/note_kfet/templates/base.html @@ -167,7 +167,7 @@ SPDX-License-Identifier: GPL-3.0-or-later -
+
{% if request.user.is_authenticated and not request.user.profile.email_confirmed %}
{% trans "Your e-mail address is not validated. Please check your mail inbox and click on the validation link." %}