-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from Elthan/feature-20-user-data-deletion
Feature #20 (user data deletion)
- Loading branch information
Showing
16 changed files
with
163 additions
and
27 deletions.
There are no files selected for viewing
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
@import "delete"; | ||
@import "trix"; | ||
@import "print"; | ||
@import "users"; | ||
|
||
|
||
.codehilite { | ||
|
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,18 @@ | ||
/** | ||
* Styles for the profile page. | ||
**/ | ||
|
||
.trix-user-buttons { | ||
margin-top: 80px; | ||
} | ||
|
||
.trix-user-text { | ||
> h1, | ||
> p { | ||
margin-bottom: 50px; | ||
} | ||
|
||
> p { | ||
font-size: 1.1em; | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
trix/trix_student/templates/trix_student/user_delete.django.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,26 @@ | ||
{% extends 'trix_student/users.django.html' %} | ||
{% load i18n %} | ||
|
||
{% block body %} | ||
<div class="page-header"> | ||
<div class="container"> | ||
<div class="trix-user-text"> | ||
<h1>{% trans "Delete user" %}</h1> | ||
<p> | ||
{% blocktrans %} | ||
Are you sure you want to delete {{ object }}? This cannot be undone! | ||
All progress will be deleted and cannot be recovered. | ||
{% endblocktrans %} | ||
</p> | ||
</div> | ||
<form action="" method="post">{% csrf_token %} | ||
<div class="trix-user-button"> | ||
<button type="submit" class="btn btn-danger">{% trans "Delete" %}</button> | ||
<a class="btn btn-cancel" href="{% url 'trix_profile_page' %}"> | ||
{% trans "Cancel" %} | ||
</a> | ||
</div> | ||
</form> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from trix.project.production.settings import * | ||
import dj_database_url | ||
|
||
# Make this 50 chars and RANDOM - do not share it with anyone | ||
SECRET_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | ||
|
||
# Database config | ||
DATABASE_URL = 'sqlite:///db.sqlite3' | ||
DATABASES = {'default': dj_database_url.config(default=DATABASE_URL)} | ||
|
||
# Set this to False to turn of debug mode in production | ||
DEBUG = False |