{% extends "wagtailusers/users/edit.html" %} {% load i18n wagtailimages_tags users_tags %} {% block content %} {% trans "Editing" as editing_str %} {% include "wagtailadmin/shared/header.html" with title=editing_str subtitle=user.get_username merged=1 tabbed=1 icon="user" %}
{% csrf_token %}
    {% block fields %} {% if form.separate_username_field %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.username_field %} {% endif %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.email %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.full_name %} {% block extra_fields %}{% endblock extra_fields %} {% comment %} First/last name hidden input with dummy values because.. Wagtail admin See hypha.apply.users.forms.CustomUserEditForm {% endcomment %} {{ form.first_name }} {{ form.last_name }} {% if form.password1 %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.password1 %} {% endif %} {% if form.password2 %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.password2 %} {% endif %} {% if form.is_active %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.is_active %} {% endif %} {% endblock fields %}
  • {% if can_delete %} {% trans "Delete user" %} {% endif %} {% user_2fa_enabled user as is_2fa_enabled %} {% if is_2fa_enabled %} {% trans "Disable 2FA" %} {% else %} {% endif %}
    {% if form.is_superuser %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.is_superuser %} {% endif %} {% include "wagtailadmin/shared/field_as_li.html" with field=form.groups %}
  • {% if can_delete %} {% trans "Delete user" %} {% endif %}
{% endblock %}