{% extends "wagtailadmin/base.html" %} {% load i18n %} {% block titletag %}{% trans "Registered 2FA devices" %}{% endblock %} {% block content %} {% trans "Two Factor Settings" as prefs_str %} {% include "wagtailadmin/shared/header.html" with title=prefs_str %}
{% for device in object_list %} {% empty %} {% endfor %}
{% trans "Name" %}

{{ device.name|default:"Default token" }}

{# Admins cannot update existing devices on another user's account. #} {% if request.user.id == device.user_id %} {% trans 'Update device' %} {% endif %} {# Admins can remove existing devices from another user's account. #} {% trans 'Remove device' %}
{% trans "There are no devices for this user." %}
{# Users can only add devices to their own account #} {% if user_id == request.user.id %} {% trans 'New device' %} {% endif %}
{% endblock %}