{% extends "base.html" %} {% load i18n %} {% comment %} Copyright 2010 Canonical Ltd. This software is licensed under the GNU Affero General Public License version 3 (see the file LICENSE). {% endcomment %} {% block html_extra %}data-qa-id="edit_account"{% endblock %} {% block title %} {% blocktrans %}{{ account_displayname }}'s details{% endblocktrans %} {% endblock %} {% block extra_header_top %} {% endblock %} {% block extra_header %} {% include "widgets/passwords_head_content.html" %} {% endblock %} {% block text_title %}

{% trans "Your account" %}

{% endblock %} {% block content %} {% include "common/unverified_email_warning.html" %} {% include "common/missing_backup_device_warning.html" %} {% include "common/printed_codes_nearly_exhausted_warning.html" %}
{% csrf_token %}
{% if enable_device_prefs %} {% trans "Personal Details" %} {% endif %}


{{ form.displayname }} {% if form.displayname.errors %} {{ form.displayname.errors|first }} {% endif %}


{% if form.preferred_email %} {% if form.preferred_email.errors %} {{ form.preferred_email.errors|first }}
{% endif %} {{ form.preferred_email }} {{ form.preferred_email.help_text }} {% else %} {# Manually added, it will be ignored by the django form #} {% endif %}

{% if not embedded %}

{% trans "Manage email addresses" %}

{% endif %} {% if not readonly %} {% include "widgets/passwords.html" %} {% endif %}
{% if enable_device_prefs %}
{% trans "Authentication Devices" %}

{{ form.twofactor_required }} {% if form.twofactor_required.errors %} {{ form.twofactor_required.errors|first }} {% endif %}

{{ form.warn_about_backup_device }} {% if form.warn_about_backup_device.errors %} {{ form.warn_about_backup_device.errors|first }} {% endif %}

{% endif %}

{% if not readonly %} {% endif %} {% if token %} {% trans "or" %} {% trans "exit without updating" %} {% endif %}

{% trans "Permanently delete account" %}

{% include "widgets/last_auth_sites.html" %} {% endblock %}