From 32e0204651473d3cb0d36e13a0a044354d88e5fe Mon Sep 17 00:00:00 2001 From: Antoine LAURENT Date: Thu, 23 Jan 2025 12:54:36 +0100 Subject: [PATCH] pro_connect: Display demo accounts link when available --- .../account/activate_pro_connect_account.html | 2 +- itou/templates/pro_connect/includes/button.html | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/itou/templates/account/activate_pro_connect_account.html b/itou/templates/account/activate_pro_connect_account.html index 563ad82d8d2..aae0449e586 100644 --- a/itou/templates/account/activate_pro_connect_account.html +++ b/itou/templates/account/activate_pro_connect_account.html @@ -24,7 +24,7 @@

ProConnect, un accès unique à tous vos services !


{{ user.email }}

- {% include "pro_connect/includes/button.html" with pro_connect_url=pro_connect_url login=True %} + {% include "pro_connect/includes/button.html" with pro_connect_url=pro_connect_url login=True activation=True %}
diff --git a/itou/templates/pro_connect/includes/button.html b/itou/templates/pro_connect/includes/button.html index b546fe151b0..3f91a895ac9 100644 --- a/itou/templates/pro_connect/includes/button.html +++ b/itou/templates/pro_connect/includes/button.html @@ -8,6 +8,20 @@
En savoir plus
+{% elif SHOW_DEMO_ACCOUNTS_BANNER %} +
+

+ ProConnect n'est pas disponible sur cet environnement. +

+ {% if activation|default:False %} +

Vous devez vous deconnecter et utiliser un autre compte.

+ {% else %} +

Vous pouvez utiliser un des comptes de démonstration pour vous connecter.

+ + {% endif %} +
{% elif login|default:False %}