From ac37431b74bc08579be957716bba30169ae904fa Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Thu, 25 Jun 2020 16:41:04 +0200 Subject: [PATCH] Blocks for container title --- authens/templates/authens/base.html | 3 +++ authens/templates/authens/login_switch.html | 5 ++++- authens/templates/authens/old_cas_login.html | 6 ++++-- authens/templates/authens/pwd_login.html | 6 ++++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/authens/templates/authens/base.html b/authens/templates/authens/base.html index f8714d5..19642fd 100644 --- a/authens/templates/authens/base.html +++ b/authens/templates/authens/base.html @@ -15,6 +15,9 @@
+ {% block container-top %} +

{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% block container-title %}{% endblock %}

+ {% endblock %} {% block content %}{% endblock %}
diff --git a/authens/templates/authens/login_switch.html b/authens/templates/authens/login_switch.html index 08c52fc..a01b8fd 100644 --- a/authens/templates/authens/login_switch.html +++ b/authens/templates/authens/login_switch.html @@ -1,8 +1,11 @@ {% extends "authens/base.html" %} {% load i18n %} +{% block container-title %} +{% trans "Mode de connexion" %} +{% endblock %} + {% block content %} -

{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% trans "Mode de connexion" %}

{% trans "Clipper" %} diff --git a/authens/templates/authens/old_cas_login.html b/authens/templates/authens/old_cas_login.html index ff3a6c7..ea2c4de 100644 --- a/authens/templates/authens/old_cas_login.html +++ b/authens/templates/authens/old_cas_login.html @@ -1,9 +1,11 @@ {% extends "authens/base.html" %} {% load i18n %} -{% block content %} -

{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% trans "Connexion vieilleux" %}

+{% block container-title %} +{% trans "Connexion vieilleux" %} +{% endblock %} +{% block content %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %} diff --git a/authens/templates/authens/pwd_login.html b/authens/templates/authens/pwd_login.html index 18d7028..1076ea3 100644 --- a/authens/templates/authens/pwd_login.html +++ b/authens/templates/authens/pwd_login.html @@ -1,9 +1,11 @@ {% extends "authens/base.html" %} {% load i18n %} -{% block content %} -

{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% trans "Connexion par mot de passe" %}

+{% block container-title %} +{% trans "Connexion par mot de passe" %} +{% endblock %} +{% block content %} {% for error in form.non_field_errors %}

{{ error }}

{% endfor %}