{% extends 'base.html' %}
{% load i18n %}
{% load static %}

{% block title %}{% trans 'Delete your Libravatar account' %}{% endblock title %}

{% block content %}

<h1>{% trans 'Delete your account' %}</h1>

<p><strong>{% trans 'There is no way to undo this operation.' %}</strong></p>

<form method="post" name="deleteaccount" id="form-deleteaccount">{% csrf_token %}

{% if user.password %}
<p>{% trans 'Please confirm your identity by entering your current password.' %}</p>

{{ form.password.errors }}
<div class="form-group" style='max-width:300px;'>
<label for="id_password">{% trans 'Password' %}:</label>
<input type="password" name="password" autofocus required class="form-control" id="id_password">
</div>

{% endif %}

<p>{% trans 'Are you sure you want to <strong>permanently delete</strong> your Libravatar account?' %}</p>

<button type="submit" class="btn btn-danger">{% trans 'Yes, delete all of my stuff' %}</button>
&nbsp;
<a href="{% url 'profile' %}" class="btn btn-secondary">{% trans 'Cancel' %}</a>

</form>

<div style="height:40px"></div>
{% endblock content %}
