forked from pyladies/pyladiescon-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogout.html
33 lines (33 loc) · 1.03 KB
/
logout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "account/base_manage.html" %}
{% load allauth i18n %}
{% block head_title %}
{% trans "Sign Out" %}
{% endblock head_title %}
{% block content %}
{% element h1 %}
{% trans "Sign Out" %}
{% endelement %}
{% element p %}
{% trans 'Are you sure you want to sign out?' %}
{% endelement %}
{% url 'account_logout' as action_url %}
{% element form method="post" action=action_url no_visible_fields=True %}
{% slot body %}
{% csrf_token %}
{{ redirect_field }}
{% endslot %}
{% slot actions %}
{% element button type="submit" %}
{% trans 'Sign Out' %}
{% endelement %}
{% element button type="button" id="cancel-button" %}
{% trans 'Cancel' %}
{% endelement %}
{% endslot %}
{% endelement %}
<script>
document.getElementById('cancel-button').addEventListener('click', function() {
history.back();
});
</script>
{% endblock content %}