-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Self-serve account deletion, and updated Privacy Policy
- "My account" page showing user details and linking to deletion form. - Link to "My account" page from user dropdown menu. - Dark Matter Labs removed from Privacy Policy as we are no longer in the alpha testing period. - Info about the postcode session storage added to Privacy Policy, along with various other small improvements.
- Loading branch information
Showing
5 changed files
with
76 additions
and
18 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
neighbourhood/templates/neighbourhood/accounts/my_account.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{% extends "neighbourhood/base.html" %} | ||
|
||
{% block content %} | ||
|
||
<div class="py-4 py-lg-5"> | ||
<div class="container"> | ||
<div class="d-flex mb-4 mb-lg-5 align-items-center"> | ||
<h1 class="mb-0 me-auto">Your account</h1> | ||
<a href="{% url 'logout' %}" class="btn btn-danger text-nowrap">Sign out</a> | ||
</div> | ||
|
||
<div class="mw-40rem mb-5 mb-lg-6"> | ||
<dl class="row"> | ||
<dt class="col-sm-3">Full name</dt> | ||
<dd class="col-sm-9">{{ request.user.full_name }}</dd> | ||
<dt class="col-sm-3">Email</dt> | ||
<dd class="col-sm-9">{{ request.user.email }}</dd> | ||
</dl> | ||
<p>If you need to change these details, please <a href="https://www.mysociety.org/contact">contact us</a>.</p> | ||
<p>You can also <a href="{% url 'password_reset' %}">change your password</a>.</p> | ||
</div> | ||
|
||
<div class="p-3 p-lg-4 rounded bg-red-100 mb-4"> | ||
<h2 class="h3 mb-3 mb-lg-4">Danger zone</h2> | ||
<div class="d-md-flex align-items-center"> | ||
<div class="flex-grow-1 mb-3 mb-md-0 pe-sm-5"> | ||
<h3 class="h6">Delete your account</h3> | ||
<p class="mb-0">If you no longer need your account, you can delete it. This <strong>cannot</strong> be undone.</p> | ||
</div> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<button type="submit" class="btn btn-danger text-nowrap">Delete account immediately</button> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters