-
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.
Update to support logout flow and have the base template link to the …
…account flows
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Sign Out{% endblock %} | ||
|
||
{% block content %} | ||
<div class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4"> | ||
<h2 class="text-2xl font-bold mb-6">Sign Out</h2> | ||
<p class="mb-4">Are you sure you want to sign out?</p> | ||
<form method="post" action="{% url 'account_logout' %}"> | ||
{% csrf_token %} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/> | ||
{% endif %} | ||
<button type="submit" class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"> | ||
Sign Out | ||
</button> | ||
</form> | ||
</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