authentic2: compute authentication methods from available blocks (#38063)
This commit is contained in:
parent
a8575117ac
commit
aeace20ade
|
@ -17,7 +17,7 @@
|
|||
{% block content %}
|
||||
|
||||
{% block login-pre %}{% endblock %}
|
||||
<div id="login-page" class="methods{% firstof visible_blocks_count blocks|length %}">
|
||||
<div id="login-page" class="methods{{ blocks|length }}">
|
||||
{% block login-top %}{% endblock %}
|
||||
|
||||
{% block login-blocks %}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{% extends "authentic2/login.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div id="login-page" class="methods{% firstof visible_blocks_count blocks|length %}">
|
||||
<div id="login-page" class="methods{{ blocks|length }}">
|
||||
{% for name, content in methods reversed %}
|
||||
<div class="block">
|
||||
{% if name == "FranceConnect" %}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{% block login-pre %}
|
||||
<div class="a2-block" id="registration-title"><h2>Se connecter</h2>
|
||||
{% if visible_blocks_count > 1 %}
|
||||
{% if blocks|length > 1 %}
|
||||
<p>Pour accéder à ces téléservices, vous devez vous identifier en
|
||||
choisissant l'une des possibilités ci-dessous :</p>
|
||||
{% else %}
|
||||
|
@ -17,7 +17,7 @@ ci-dessous :</p>
|
|||
<div id="login-blocks">
|
||||
{% for id, login_block in blocks.items %}
|
||||
<div class="a2-block" id="frontend-login-{{id}}" {% if login_block.is_hidden %}style="display: none"{% endif %}>
|
||||
{% if visible_blocks_count > 1 %}
|
||||
{% if blocks|length > 1 %}
|
||||
<h2>{% if id == "password" %}Vos identifiants{% else %}{{ login_block.name }}{% endif %}</h2>
|
||||
{% endif %}
|
||||
<div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{% block login-pre %}
|
||||
<div class="a2-block" id="registration-title"><h2>Se connecter</h2>
|
||||
{% if visible_blocks_count > 1 %}
|
||||
{% if blocks|length > 1 %}
|
||||
<p>Pour accéder à ces téléservices, vous devez vous identifier en
|
||||
choisissant l'une des possibilités ci-dessous :</p>
|
||||
{% else %}
|
||||
|
@ -17,7 +17,7 @@ ci-dessous :</p>
|
|||
<div id="login-blocks">
|
||||
{% for id, login_block in blocks.items %}
|
||||
<div class="a2-block" id="frontend-login-{{id}}" {% if login_block.is_hidden %}style="display: none"{% endif %}>
|
||||
{% if visible_blocks_count > 1 %}
|
||||
{% if blocks|length > 1 %}
|
||||
<h2>{% if id == "password" %}Vos identifiants{% else %}{{ login_block.name }}{% endif %}</h2>
|
||||
{% endif %}
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue