Override logout template
This commit is contained in:
parent
5fc7ea11b0
commit
6ea1a7c77f
1 changed files with 24 additions and 0 deletions
24
photo21/templates/account/logout.html
Normal file
24
photo21/templates/account/logout.html
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{% extends "account/base.html" %}
|
||||||
|
{% comment %}
|
||||||
|
SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
{% endcomment %}
|
||||||
|
{% load i18n %}
|
||||||
|
{% block head_title %}{% trans "Sign Out" %}{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<div class="card mx-auto">
|
||||||
|
<h3 class="card-header text-center">
|
||||||
|
{% trans "Sign Out" %}
|
||||||
|
</h3>
|
||||||
|
<div class="card-body">
|
||||||
|
<p>{% trans '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="btn btn-primary">{% trans 'Sign Out' %}</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue