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> </head>
<body> <body>
<div id="container"> <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 %} {% block content %}{% endblock %}
</div> </div>
</body> </body>

View file

@ -1,8 +1,11 @@
{% extends "authens/base.html" %} {% extends "authens/base.html" %}
{% load i18n %} {% load i18n %}
{% block container-title %}
{% trans "Mode de connexion" %}
{% endblock %}
{% block content %} {% 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 }}"> <a href="{% url "authens:login.cas" %}?next={{ next| urlencode }}">
<div class="big-button cas"> <div class="big-button cas">
{% trans "Clipper" %} {% trans "Clipper" %}

View file

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

View file

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