{% extends "base.html" %} {% load i18n static url_with_token %} {% 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 %}Personal details{% endblocktrans %} {% endblock %} {% block text_title %}

{% trans "Personal details" %}

{% endblock %} {% block extra_css %} {% if last_authenticated_sites %} {% endif %} {% 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 %}
{{ form.displayname }} {% if form.displayname.errors %} {{ form.displayname.errors|first }} {% endif %}
{% if form.username %}
{{ form.username }} {% if form.username.errors %} {{ form.username.errors|first }} {% endif %}
{% endif %}
{% if form.preferred_email %} {% if form.preferred_email.errors %} {{ form.preferred_email.errors|first }} {% endif %} {{ form.preferred_email }} {% 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" with edit_account_labels=1 fields=form %} {% 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 %} {% block extra_js %} {% include "registration/_password_meter.html" with pwd_selector="#id_password" pwd_confirm_selector="#id_passwordconfirm" %} {% endblock %}