From 030e2478a573568a724d7404a7f745bd904d61ae Mon Sep 17 00:00:00 2001 From: sandeepsajan0 <sandeepsajan0@gmail.com> Date: Mon, 9 May 2022 08:28:01 +0530 Subject: [PATCH] Add help text on hover if 2fa is already disabled --- hypha/apply/users/templates/wagtailusers/users/edit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypha/apply/users/templates/wagtailusers/users/edit.html b/hypha/apply/users/templates/wagtailusers/users/edit.html index e71b10897..6de2d3c9c 100644 --- a/hypha/apply/users/templates/wagtailusers/users/edit.html +++ b/hypha/apply/users/templates/wagtailusers/users/edit.html @@ -50,7 +50,7 @@ {% endif %} <!-- Add a custom button to user account edit form --> {% user_2fa_enabled as is_2fa_enabled %} - <a href="{% if is_2fa_enabled %}{% url 'users:two_factor_reset' user.pk %}{% else %}javascript:void(0){% endif %}" class="button {% if not is_2fa_enabled %}disabled{% endif %}">{% trans "Disable 2FA" %}</a> + <a href="{% if is_2fa_enabled %}{% url 'users:two_factor_reset' user.pk %}{% else %}javascript:void(0){% endif %}" class="button {% if not is_2fa_enabled %}disabled{% endif %}" {% if not is_2fa_enabled %} title="{% blocktranslate %} {{ user }}'s 2FA security has been disabled {% endblocktranslate %}" {% endif %}>{% trans "Disable 2FA" %}</a> </li> </ul> </section> -- GitLab