2021-09-09 00:34:01 +00:00
{% extends "components/inline_form.html" %}
{% load i18n %}
{% block header %}
{% trans "Permanently delete user" %}
{% endblock %}
{% block form %}
< form name = "delete-user" action = "{% url 'settings-delete-user' user.id %}" method = "post" >
{% csrf_token %}
2021-09-10 18:03:45 +00:00
< p >
{% blocktrans trimmed with username=user.localname %}
Are you sure you want to delete < strong > {{ username}}< / strong > 's account? This action cannot be undone. To proceed, please enter your password to confirm deletion.
{% endblocktrans %}
< / p >
2021-09-09 00:34:01 +00:00
< div class = "field" >
2021-09-10 18:03:45 +00:00
< label class = "label" for = "id_password" > {% trans "Your password:" %}< / label >
2021-09-09 00:34:01 +00:00
< input class = "input {% if form.password.errors %}is-danger{% endif %}" type = "password" name = "password" id = "id_password" required >
{% for error in form.password.errors %}
< p class = "help is-danger" > {{ error | escape }}< / p >
{% endfor %}
< / div >
< button type = "submit" class = "button is-danger" > {% trans "Delete Account" %}< / button >
< / form >
{% endblock %}