{% extends "layout.html" %}
{% from "_macros.html" import render_field_with_errors, render_field %}

{% block content %}

<h1>{{ _('Delete account') }} &quot;{{ current_user.email }}&quot;</h1>

<p>{{ _('The account is not deleted immediately. After a period of time, the account will be deleted. Until then, the deletion can be canceled.') }}</p>

<form action="" method="POST">
  {{ form.hidden_tag() }}

  <div class="card mb-4">
    <div class="card-header">
      {{ _('User') }}
    </div>
    <div class="card-body">
      {{ render_field_with_errors(form.email) }}
    </div>
  </div>

  {{ render_field(form.submit) }}

</form>

{% endblock %}
