From fc3de49c57b287f739943be54983c41516ae8996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 26 Mar 2019 10:21:46 +0100 Subject: [PATCH] templates: do not include password registration block along others (#31718) --- templates/registration/registration_form.html | 2 ++ .../registration/registration_form.html | 2 ++ .../registration/registration_form.html | 2 ++ .../montpellier/registration/registration_form.html | 2 ++ .../strasbourg-2018/registration/registration_form.html | 2 ++ .../variants/toulouse/registration/registration_form.html | 8 +++++++- 6 files changed, 17 insertions(+), 1 deletion(-) diff --git a/templates/registration/registration_form.html b/templates/registration/registration_form.html index 33d2a8e4..733d00e6 100644 --- a/templates/registration/registration_form.html +++ b/templates/registration/registration_form.html @@ -33,6 +33,7 @@ pour ouvrir votre compte. {% block registration-other-methods %} {% for id, block in frontends.items %} + {% if id != "password" %}

{{ block.name }}

@@ -40,6 +41,7 @@ pour ouvrir votre compte. {{ block.content|safe }}
+ {% endif %} {% endfor %} {% endblock %} diff --git a/templates/variants/grenoble-metropole-2019/registration/registration_form.html b/templates/variants/grenoble-metropole-2019/registration/registration_form.html index 4aee6ac4..f1c6dc3b 100644 --- a/templates/variants/grenoble-metropole-2019/registration/registration_form.html +++ b/templates/variants/grenoble-metropole-2019/registration/registration_form.html @@ -14,6 +14,7 @@ {% for id, block in frontends.items %} + {% if id != "password" %}

{{ block.name }}

@@ -21,6 +22,7 @@ {{ block.content|safe }}
+ {% endif %} {% endfor %} {% endblock %} diff --git a/templates/variants/grenoble-metropole/registration/registration_form.html b/templates/variants/grenoble-metropole/registration/registration_form.html index 4aee6ac4..f1c6dc3b 100644 --- a/templates/variants/grenoble-metropole/registration/registration_form.html +++ b/templates/variants/grenoble-metropole/registration/registration_form.html @@ -14,6 +14,7 @@ {% for id, block in frontends.items %} + {% if id != "password" %}

{{ block.name }}

@@ -21,6 +22,7 @@ {{ block.content|safe }}
+ {% endif %} {% endfor %} {% endblock %} diff --git a/templates/variants/montpellier/registration/registration_form.html b/templates/variants/montpellier/registration/registration_form.html index f0331ce5..bde4cf02 100644 --- a/templates/variants/montpellier/registration/registration_form.html +++ b/templates/variants/montpellier/registration/registration_form.html @@ -19,9 +19,11 @@ {% for id, block in frontends.items %} + {% if != "password" %}
{{ block.content|safe }}
+ {% endif %} {% endfor %} diff --git a/templates/variants/strasbourg-2018/registration/registration_form.html b/templates/variants/strasbourg-2018/registration/registration_form.html index 1c585aa5..0376adc0 100644 --- a/templates/variants/strasbourg-2018/registration/registration_form.html +++ b/templates/variants/strasbourg-2018/registration/registration_form.html @@ -19,12 +19,14 @@ {% for id, block in frontends.items %} + {% if id != "password" %}

S'inscrire avec {{ block.name }}

{{ block.content|safe }}

+ {% endif %} {% endfor %} {% endblock %} diff --git a/templates/variants/toulouse/registration/registration_form.html b/templates/variants/toulouse/registration/registration_form.html index ae2e5bec..625c5eff 100644 --- a/templates/variants/toulouse/registration/registration_form.html +++ b/templates/variants/toulouse/registration/registration_form.html @@ -3,7 +3,13 @@ {% block registration-pre %}

S'inscrire

-{% if frontends.items|length %} +{% if frontends.items|length > 1 and "password" in frontends %} +

Pour accéder à ces téléservices, vous devez vous identifier en +choisissant l'une des possibilités ci-dessous :

+{% comment %} +support for authentic2 before #31218 +{% endcomment %} +{% elif frontends.items|length and "password" not in frontends %}

Pour accéder à ces téléservices, vous devez vous identifier en choisissant l'une des possibilités ci-dessous :

{% else %} -- 2.20.1