Skip to content

Commit

Permalink
add login and logout templates to override allauth default templates #…
Browse files Browse the repository at this point in the history
  • Loading branch information
jh-RLI committed Nov 20, 2024
1 parent 9de1ccd commit e676a8c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions login/templates/account/login.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "base/base-full.html" %}
{% extends "account/base.html" %}
{% load base_tags %}
{% load socialaccount %}

Expand All @@ -11,7 +11,7 @@
{% translate "Sign In" %}
{% endblock head_title %}

{% block main-content-body %}
{% block content %}

{% block inner %}
<h1>{% translate "Sign In" %}</h1>
Expand Down
20 changes: 20 additions & 0 deletions login/templates/account/logout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% extends "account/base.html" %}

{% load i18n %}

{% block head_title %}
{% translate "Sign Out" %}
{% endblock head_title %}
{% block inner %}
<h1>{% translate "Sign Out" %}</h1>
<p>{% translate "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 class="btn btn-danger" type="submit">{% translate "Sign Out" %}</button>
</form>
{% endblock inner %}

0 comments on commit e676a8c

Please sign in to comment.