-
Notifications
You must be signed in to change notification settings - Fork 12
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 #152 from womenhackfornonprofits/development
Merging development into master for the next release
- Loading branch information
Showing
14 changed files
with
218 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# Contributing Guidelines | ||
1. Come say hi in the #ocd-action Slack channel before grabbing a ticket | ||
2. Fork the repository or ask to be added to the team on Github (you will need to have a github account and share your github username) | ||
3. Assign an issue to yourself and start working. All changes must be done on a new branch so you can raise a PR. | ||
3. Assign an issue to yourself and start working. All changes must be done on a new branch so you can raise a PR. Checkout a new branch from `development` branch (which is our pre-production branch). | ||
4. Once ready, please raise a Pull Request. | ||
|
||
# How to raise a Pull Request | ||
In order to raise a Pull Request with your changes (please make sure all changes are done on a branch): | ||
|
||
- Save and commit your changes | ||
- Push your changes and create a pull request: `git push origin your_branch_name` | ||
- Go to the [repo](https://github.com/womenhackfornonprofits/london-cafes-django) and you should see a green button "Raise a Pull Request" | ||
- Go to the [repo](https://github.com/womenhackfornonprofits/ocdaction) and you should see a green button "Raise a Pull Request" | ||
![](https://help.github.com/assets/images/help/pull_requests/pull-request-click-to-create.png) | ||
- Change a base branch from `master` to `development` | ||
- Describe all the changes you have made in details and save. |
This file was deleted.
Oops, something went wrong.
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
24 changes: 24 additions & 0 deletions
24
ocdaction/ocdaction/templates/challenge/challenge_erase_my_record.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,24 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% load static %} | ||
{% block title %}My Account{% endblock %} | ||
|
||
{% block main %} | ||
<section class="container"> | ||
<h1 class="col-lg-12">My Account</h1> | ||
<div class="col-xs-12 col-md-6 col-md-offset-3"> | ||
<div class="row"> | ||
<h5 class="text-left font-bold">Are you sure you want to erase all your challenges records on OCD Youth?</h5> | ||
<p>Once erased you cannot recover the record. | ||
</p> | ||
<div class="margin-top-30"> | ||
<a class="btn btn-lg btn-outline btn-warning" href="{% url 'delete-users-challenges' %}">Yes, erase my record</a> | ||
</div> | ||
<div class="margin-top-30"> | ||
<a href="{% url 'my-account' %}">Cancel and go back to last page</a> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% load static %} | ||
{% block title %}My Account{% endblock %} | ||
|
||
{% block main %} | ||
<section class="container"> | ||
<h1 class="col-lg-12">My Account</h1> | ||
<div class="col-xs-12 col-md-6 col-md-offset-3"> | ||
<div class="row"> | ||
<h5 class="text-left font-bold">Erase your record from this platform</h5> | ||
<p>You can erase all your challenges record on OCD Youth while keeping your account. | ||
You can log in with the same email and password. | ||
</p> | ||
<div class="margin-top-30"> | ||
<a class="btn btn-lg btn-outline btn-warning" href="{% url 'challenge-erase-my-record' %}">Erase my record</a> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<h5 class="text-left font-bold">Delete your account</h5> | ||
<p>This erases your data and deletes your account. Once clicked you will not be able to log in again. | ||
</p> | ||
<div class="margin-top-30"> | ||
<a class="btn btn-lg btn-outline btn-danger" href="{% url 'my-account-delete' %}">I want to delete my account</a> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
{% endblock %} |
35 changes: 35 additions & 0 deletions
35
ocdaction/ocdaction/templates/profiles/my_account_confirm.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,35 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% load static %} | ||
{% block title %}My Account{% endblock %} | ||
|
||
{% block main %} | ||
|
||
<section class="container"> | ||
<h1 class="col-lg-12">My Account</h1> | ||
<div class="col-xs-12 col-md-6 col-md-offset-3"> | ||
|
||
{% if deleted_user %} | ||
|
||
<div class="row"> | ||
<h5 class="text-left font-bold">Your account is now deleted</h5> | ||
<p>You can <a href="{% url 'index' %}">return to the homepage</a>. | ||
</p> | ||
</div> | ||
|
||
{% else %} | ||
|
||
<div class="row"> | ||
<h5 class="text-left font-bold">Your record is now deleted</h5> | ||
<p>You can return to the <a href="{% url 'challenge-list' %}">challenges page</a> to add new challenges. | ||
</p> | ||
</div> | ||
|
||
{% endif %} | ||
|
||
</div> | ||
</section> | ||
|
||
|
||
|
||
{% endblock %} |
24 changes: 24 additions & 0 deletions
24
ocdaction/ocdaction/templates/profiles/my_account_delete.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,24 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% load static %} | ||
{% block title %}My Account{% endblock %} | ||
|
||
{% block main %} | ||
<section class="container"> | ||
<h1 class="col-lg-12">My Account</h1> | ||
<div class="col-xs-12 col-md-6 col-md-offset-3"> | ||
<div class="row"> | ||
<h5 class="text-left font-bold">Are you sure you want to delete your account?</h5> | ||
<p>Once deleted, you cannot recover your account. | ||
</p> | ||
<div class="margin-top-30"> | ||
<a class="btn btn-lg btn-outline btn-danger" href="{% url 'delete-user' %}">Yes, delete my account</a> | ||
</div> | ||
<div class="margin-top-30"> | ||
<a href="{% url 'my-account' %}">Cancel and go back to last page</a> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
name="index" | ||
), | ||
url( | ||
r'^users/', | ||
r'', | ||
include('profiles.urls') | ||
), | ||
url( | ||
|
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