{% extends "dac/base.html" %} {% load static i18n %} {% block title %} {% trans "Manage email" %} {% endblock title %} {% block page.breadcrumbs %} {{ block.super }} {% endblock page.breadcrumbs %} {% block page.content %} {% if emailaddresses %} {% for radio in emailaddress_radios %} {% with emailaddress=radio.emailaddress %}
{{ emailaddress }}
{% if emailaddress.primary %} {% endif %} {% if emailaddress.verified %} {% else %} {% endif %}
{% csrf_token %} {# "Make primary" only applies to non-primary addresses; the current primary cannot promote itself. #} {% if not emailaddress.primary %} {% endif %} {# "Re-send verification" is only useful for unverified addresses. #} {% if not emailaddress.verified %} {% endif %} {# Divider appears only when there are action items above it (i.e. this is not the primary address). #} {% if not emailaddress.primary %}{% endif %} {# "Remove" is always shown but rendered disabled for the primary address, which cannot be deleted. #}
{# Show a description blurb only under the primary address row. #} {% if emailaddress.primary %} {% endif %}
{% endwith %} {% endfor %}
{# Show the "add email" form only when the user hasn't reached the configured address limit (ACCOUNT_MAX_EMAIL_ADDRESSES). #}
{% else %} {% include "account/snippets/warn_no_email.html" %} {% endif %} {% endblock page.content %} {% block extra_js %} {# djlint:off #} {# djlint:on #} {% endblock extra_js %}