We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df928ec commit d744d05Copy full SHA for d744d05
1 file changed
hypha/apply/users/templates/wagtailusers/users/edit.html
@@ -1,4 +1,17 @@
1
{% extends "wagtailusers/users/edit.html" %}
2
+{% load users_tags i18n %}
3
+
4
+{% block actions %}
5
+ {{ block.super }}
6
+ {% user_2fa_enabled user as is_2fa_enabled %}
7
+ {% if is_2fa_enabled %}
8
+ <a class="button serious button-longrunning" href="{% url 'users:admin_disable' user.pk %}">
9
+ {% trans "Disable 2FA" %}
10
+ </a>
11
+ {% else %}
12
+ <button type="button" title="{% trans "This account does not have 2FA enabled." %}" class="button" disabled>{% trans "2FA is disabled" %}</button>
13
+ {% endif %}
14
+{% endblock %}
15
16
{% block extra_fields %}
17
<li>{% include "wagtailadmin/shared/field.html" with field=form.full_name %}</li>
0 commit comments