{% extends "base.html" %}
{% load i18n %}
{% load translations %}
{% load crispy_forms_tags %}

{% block breadcrumbs %}
<li><a href="{% url 'profile' %}">{% trans "Your profile" %}</a></li>
{% endblock %}

{% block content %}

{% trans 'Removal of the account deletes all your private data.' as msg %}
{% show_message 'danger' msg %}

<form method="post" action="{% url 'remove' %}">
<div class="panel panel-primary">
  <div class="panel-heading"><h4 class="panel-title">{% trans "Account removal" %}</h4></div>
  <div class="panel-body">
{{ confirm_form|crispy }}
{% if is_confirmation %}
<p>{% blocktrans %}By pressing following button, your will no longer be able to use this account.{% endblocktrans %}</p>
{% else %}
<p>{% blocktrans %}You will have to confirm account removal by clicking link in email you will receive.{% endblocktrans %}</p>
{% endif %}
{% csrf_token %}
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> {% trans "Delete this account" %}</button>
</div>
</form>
</div>
</div>

{% endblock %}
