Projet

Général

Profil

0001-authentic2-compute-authentication-methods-from-avail.patch

Serghei Mihai, 03 décembre 2019 14:08

Télécharger (3,54 ko)

Voir les différences:

Subject: [PATCH] authentic2: compute authentication methods from available
 blocks (#38063)

 templates/authentic2/login.html                             | 2 +-
 templates/variants/arles/authentic2/login.html              | 2 +-
 templates/variants/toulouse-metropole/authentic2/login.html | 4 ++--
 templates/variants/toulouse/authentic2/login.html           | 4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
templates/authentic2/login.html
17 17
{% block content %}
18 18

  
19 19
{% block login-pre %}{% endblock %}
20
<div id="login-page" class="methods{% firstof visible_blocks_count blocks|length %}">
20
<div id="login-page" class="methods{{ blocks|length }}">
21 21
{% block login-top %}{% endblock %}
22 22

  
23 23
{% block login-blocks %}
templates/variants/arles/authentic2/login.html
1 1
{% extends "authentic2/login.html" %}
2 2

  
3 3
{% block content %}
4
<div id="login-page" class="methods{% firstof visible_blocks_count blocks|length %}">
4
<div id="login-page" class="methods{{ blocks|length }}">
5 5
  {% for name, content in methods reversed %}
6 6
  <div class="block">
7 7
    {% if name == "FranceConnect" %}
templates/variants/toulouse-metropole/authentic2/login.html
2 2

  
3 3
{% block login-pre %}
4 4
<div class="a2-block" id="registration-title"><h2>Se connecter</h2>
5
{% if visible_blocks_count > 1 %}
5
{% if blocks|length > 1 %}
6 6
<p>Pour accéder à ces téléservices, vous devez vous identifier en
7 7
choisissant l'une des possibilités ci-dessous :</p>
8 8
{% else %}
......
17 17
<div id="login-blocks">
18 18
{% for id, login_block in blocks.iteritems %}
19 19
<div class="a2-block" id="frontend-login-{{id}}" {% if login_block.is_hidden %}style="display: none"{% endif %}>
20
{% if visible_blocks_count > 1 %}
20
{% if blocks|length > 1 %}
21 21
<h2>{% if id == "password" %}Vos identifiants{% else %}{{ login_block.name }}{% endif %}</h2>
22 22
{% endif %}
23 23
<div>
templates/variants/toulouse/authentic2/login.html
2 2

  
3 3
{% block login-pre %}
4 4
<div class="a2-block" id="registration-title"><h2>Se connecter</h2>
5
{% if visible_blocks_count > 1 %}
5
{% if blocks|length > 1 %}
6 6
<p>Pour accéder à ces téléservices, vous devez vous identifier en
7 7
choisissant l'une des possibilités ci-dessous :</p>
8 8
{% else %}
......
17 17
<div id="login-blocks">
18 18
{% for id, login_block in blocks.iteritems %}
19 19
<div class="a2-block" id="frontend-login-{{id}}" {% if login_block.is_hidden %}style="display: none"{% endif %}>
20
{% if visible_blocks_count > 1 %}
20
{% if blocks|length > 1 %}
21 21
<h2>{% if id == "password" %}Vos identifiants{% else %}{{ login_block.name }}{% endif %}</h2>
22 22
{% endif %}
23 23
<div>
24
-