-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added function to allow a user to delete/anonymize their own account.
- Loading branch information
1 parent
79d1d2c
commit 5bcbdca
Showing
8 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{% extends "base.html" %} | ||
|
||
{% load bootstrap4 %} | ||
|
||
{% block main_content %} | ||
<div class="container"> | ||
<ul class="nav nav-tabs mb-4" id="nav-tab" role="tablist"> | ||
<li class="nav-item"> | ||
<a class="nav-link font-weight-bold" aria-selected="false" id="contributions-tab" type="button" role="tab" href="{% url 'user-profile' %}">My Contributions</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link font-weight-bold" aria-selected="false" id="recent-tab" type="button" role="tab" aria-controls="recent" href="{% url 'user-profile' %}#recent">Recent Pages Worked On</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link font-weight-bold active" aria-selected="true" id="account-tab" type="button" role="tab" href="{% url 'user-profile' %}#account">Account Settings</a> | ||
</li> | ||
</ul> | ||
<div class="row"> | ||
<div class="col-md-8 mx-auto p-3"> | ||
|
||
|
||
|
||
</div> | ||
</div> | ||
<div class="col-12 col-md-10 py-3 mt-4 change-options"> | ||
<div class="d-flex"> | ||
<h2>Delete your account?</h2> | ||
</div> | ||
<div class="d-flex"> | ||
<p>This cannot be undone!</p> | ||
</div> | ||
<form class="form" action="{% url 'account-deletion' %}" method="POST" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
<div class="input-group-append"> | ||
{% bootstrap_button "Delete Account" button_type="submit" button_class="btn btn-primary rounded-0" name="submit_delete" %} | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock main_content %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Your By the People account has been deleted. | ||
|
||
Sorry to see you go, | ||
-- The By the People team |
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 @@ | ||
Your By the People account has been deleted |
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