Blocks for container title

This commit is contained in:
Ludovic Stephan 2020-06-25 16:41:04 +02:00
parent 3a46a003d5
commit ac37431b74
4 changed files with 15 additions and 5 deletions

View file

@ -15,6 +15,9 @@
</head>
<body>
<div id="container">
{% block container-top %}
<h2>{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% block container-title %}{% endblock %}</h2>
{% endblock %}
{% block content %}{% endblock %}
</div>
</body>

View file

@ -1,8 +1,11 @@
{% extends "authens/base.html" %}
{% load i18n %}
{% block container-title %}
{% trans "Mode de connexion" %}
{% endblock %}
{% block content %}
<h2>{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% trans "Mode de connexion" %}</h2>
<a href="{% url "authens:login.cas" %}?next={{ next| urlencode }}">
<div class="big-button cas">
{% trans "Clipper" %}

View file

@ -1,9 +1,11 @@
{% extends "authens/base.html" %}
{% load i18n %}
{% block content %}
<h2>{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% trans "Connexion vieilleux" %}</h2>
{% block container-title %}
{% trans "Connexion vieilleux" %}
{% endblock %}
{% block content %}
{% for error in form.non_field_errors %}
<p class="error">{{ error }}</p>
{% endfor %}

View file

@ -1,9 +1,11 @@
{% extends "authens/base.html" %}
{% load i18n %}
{% block content %}
<h2>{% if request.site.name %}{{ request.site.name }}{% else %}AuthENS{% endif %} - {% trans "Connexion par mot de passe" %}</h2>
{% block container-title %}
{% trans "Connexion par mot de passe" %}
{% endblock %}
{% block content %}
{% for error in form.non_field_errors %}
<p class="error">{{ error }}</p>
{% endfor %}