template: add account deletion new templates (#46176)
This commit is contained in:
parent
22b0e77ab2
commit
66640a4ac6
|
@ -1,22 +0,0 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
{{ block.super }}
|
||||
<a href="{% url "account_management" %}">{% trans "Your account" %}</a>
|
||||
<a href="#">{% trans "Delete account" %}</a>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
<div class="a2-container">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<p>{% trans "Delete my account and all my personal datas ?" %}</p>
|
||||
{{ form.as_p }}
|
||||
<input type="submit" name="submit" value="{% trans "Delete" %}"/>
|
||||
<input type="submit" name="cancel" value="{% trans "Cancel" %}"/>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="a2-container">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
Do you really want to delete your account?
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<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>
|
||||
<button class="submit-button" name="submit">{% trans "Send the code" %}</button>
|
||||
<button class="cancel-button" name="cancel" formnovalidate>{% trans "Cancel" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
{% extends "authentic2/base-page.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<div class="a2-container">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<p>
|
||||
{% blocktrans with full_name=user.get_full_name %}
|
||||
You are about to delete the account of <strong>{{ full_name }}</strong>.
|
||||
This will remove all related personal data and you won't be able to log in with this account anymore.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<button class="delete-button" name="delete">{% trans "Confirm deletion" %}</button>
|
||||
<button class="cancel-button" name="cancel" formnovalidate>{% trans "Cancel" %}</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue