{% extends "includes/crud/table_list.html" %} {% load trans blocktrans from i18n %} {% block top_menu %} {% endblock top_menu %} {% block create_button %} {% endblock create_button %} {% block list_placeholder_icon_class %} fa-duotone fa-envelope-dot {% endblock list_placeholder_icon_class %} {% block list_placeholder_header %} {% blocktrans trimmed %} No email addresses have been configured yet {% endblocktrans %}
{% blocktrans trimmed %} Email addresses are required receive notifications and reset your password. {% endblocktrans %}
{% endblock list_placeholder_header %} {% block list_item_right_menu %} {% url "account_email" as form_url %}
{% if not object.primary %}
{% csrf_token %}
{% endif %} {% if not object.verified %}
{% csrf_token %}
{% endif %} {% trans "Remove email" as action_text %} {% blocktrans trimmed asvar content_text with email=object.email %} Remove email address {{ email }}? {% endblocktrans %} {% include "includes/crud/remove_button.html" with id=object.pk form_url=form_url action_name="action_remove" action_text=action_text content_text=content_text field_name="email" field_value=object.email %}
{% endblock list_item_right_menu %} {% block list_item_image %} {% endblock list_item_image %} {% block list_item_header %}
{{ object.email }} {% if object.primary %}{% endif %}
{% if object.verified %} {% trans "Verified" %} {% else %} {% trans "Pending verification" %} {% endif %} {% if object.primary %} {% trans "Primary email" %} {% endif %}
{% endblock list_item_header %} {% block list_item_meta_items %} {% endblock list_item_meta_items %} {% block list_item_extra %} {% endblock list_item_extra %}