{% extends "authentic2/base-page.html" %}
{% load i18n %}

{% block title %}
  {{ view.title }}
{% endblock %}

{% block breadcrumb %}
  {{ block.super }}
  <a href="{% url "account_management" %}">{% trans "Your account" %}</a>
  <a href="#">{{ view.title }}</a>
{% endblock %}


{% block content %}
  <form method="post">
    {% csrf_token %}
    <p>
      {% blocktrans trimmed %}
        Do you really want to delete your account?
      {% endblocktrans %}
    </p>
    {% if email and user.email_verified %}
      <p>
        {% blocktrans trimmed %}
          A validation message will be sent to {{ email }}. You will have to visit the
          link in this email in order to complete the deletion process.
        {% endblocktrans %}
      </p>
    {% elif is_phone_authn_active and phone and user.phone_verified_on %}
      <p>
        {% blocktrans trimmed %}
          A validation code will be sent to {{ phone }}. You will have to type in the
          code in the next page to complete the deletion process.
        {% endblocktrans %}
      </p>
    {% endif %}
    <div class="buttons">
      <button class="submit-button" name="submit">{% if user.email_verified %}{% trans "Send message" %}{% else %}{% trans "Delete account" %}{% endif %}</button>
      <button class="cancel-button" name="cancel" formnovalidate>{% trans "Cancel" %}</button>
    </div>
  </form>
{% endblock %}
