{% extends "account/base_manage_email.html" %} {% load i18n crispy_forms_tags %} {% block title %} {% trans "Change Email" %} {% endblock title %} {% block page.breadcrumbs %} {{ block.super }} {% endblock page.breadcrumbs %} {% block page.content %} {# Warn the user if they have no email address on file — the form below requires one to exist before a change can be made. #} {% if not emailaddresses %} {% include "account/snippets/warn_no_email.html" %} {% endif %} {% url 'account_email' as action_url %} {# Show the current verified address as a read-only field. Absent when the user has no confirmed address yet. #} {% if current_emailaddress %} {% endif %} {# Show a pending-address block when the user has submitted a new address that is still awaiting verification. #} {% if new_emailaddress %}
{% trans "Your email address is still pending verification." %} {# "Cancel Change" requires a confirmed address to revert to; hidden when there is no current address. #} {% if current_emailaddress %} {% endif %}
{% endif %} {% trans "Provide the new email address you wish to change to." %} {{ form.email|as_crispy_field }}
{# Hidden form used by the Re-send / Cancel Change buttons above; targets the pending address via a hidden email field. #} {% if new_emailaddress %} {% endif %} {% endblock page.content %}