Projet

Général

Profil

0001-templates-move-authentication-titles-to-dedicated-bl.patch

Serghei Mihai, 18 janvier 2023 11:24

Télécharger (2,27 ko)

Voir les différences:

Subject: [PATCH] templates: move authentication titles to dedicated block
 (#65803)

 templates/authentic2/login.html               | 19 -------------------
 templates/authentic2/login_password_form.html |  5 +++++
 templates/authentic2_auth_fedict/login.html   |  5 +++++
 3 files changed, 10 insertions(+), 19 deletions(-)
templates/authentic2/login.html
5 5
  <p>Pour accéder aux démarches sécurisées, veuillez vous connecter :</p>
6 6
</div>
7 7
{% endblock %}
8

  
9
{% block login-blocks %}
10
{% for id, login_block in blocks.items %}
11
<div class="block block-{% firstof login_block.authenticator.type login_block.authenticator.id %} block-{{id}}" style="min-height: 400px;">
12
{% if blocks|length == 1 %}
13
<h2>Connexion</h2>
14
{% elif id == "password" %}
15
<h2>Connexion avec identifiant</h2>
16
{% elif id == "fedict" %}
17
<h2>Connexion avec carte d’identité</h2>
18
{% else %}
19
<!-- no title for oidc -->
20
{% endif %}
21
<div {% if login_block.extra_css_class %} class="{{ login_block.extra_css_class }}"{% endif %}>
22
{{ login_block.content|safe }}
23
</div>
24
</div>
25
{% endfor %}
26
{% endblock %}
templates/authentic2/login_password_form.html
1 1
{% load i18n staticfiles %}
2

  
3
{% block login-block-title %}
4
<h2>Connexion avec identifiant</h2>
5
{% endblock %}
6

  
2 7
<div>
3 8
  <form method="post" action="">
4 9
    {% csrf_token %}
templates/authentic2_auth_fedict/login.html
1 1
{% load i18n static %}
2

  
3
{% block login-block-title %}
4
<h2>Connexion avec carte d’identité</h2>
5
{% endblock %}
6

  
2 7
<div>
3 8
  <form method="post" id="csam-login">
4 9
      <p>
5
-