-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
617ab06
commit 4a16009
Showing
11 changed files
with
175 additions
and
27 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{% extends "account/base.html" %} | ||
|
||
{% load i18n %} | ||
{% load account socialaccount %} | ||
|
||
{% block title %}{% trans "Sign In" %}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="page-header"> | ||
<p><a class="link--inverse" href="{% url 'index' %}">Home</a></p> | ||
<h1>{% trans "Sign In" %}</h1> | ||
</div> | ||
|
||
{% get_providers as socialaccount_providers %} | ||
|
||
{% if socialaccount_providers %} | ||
<p>{% blocktrans with site.name as site_name %}Please sign in with one | ||
of your existing third party accounts. {% endblocktrans %}</p> | ||
|
||
<div class="socialaccount_ballot"> | ||
<ul class="socialaccount_providers"> | ||
{% include "socialaccount/snippets/provider_list.html" with process="login" %} | ||
</ul> | ||
|
||
<div class="login-or">{% trans 'or' %}</div> | ||
|
||
</div> | ||
|
||
{% include "socialaccount/snippets/login_extra.html" %} | ||
|
||
{% else %} | ||
<p>{% blocktrans %}If you have not created an account yet, then please | ||
<a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p> | ||
{% endif %} | ||
|
||
<form class="login" method="POST" action="{% url 'account_login' %}"> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/> | ||
{% endif %} | ||
|
||
<div class="spacer"></div> | ||
<button id="button" type="submit" class="button"> | ||
<span class="button__label">{% trans "Sign In" %}</span> | ||
</button> | ||
|
||
<p><a href="{% url 'account_reset_password' %}">Lost password?</a></p> | ||
<p><a href="{{ signup_url }}">Create an account</a></p> | ||
|
||
</form> | ||
|
||
{% 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{% extends "account/base.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block head_title %}{% trans "Sign Out" %}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="page-header"> | ||
<p><a class="link--inverse" href="{% url 'index' %}">Home</a></p> | ||
<h1>{% trans "Sign Out" %}</h1> | ||
</div> | ||
|
||
<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 %} | ||
|
||
<div class="spacer"></div> | ||
<button id="button" type="submit" class="button"> | ||
<span class="button__label">{% trans "Sign Out" %}</span> | ||
</button> | ||
|
||
</form> | ||
|
||
{% endblock %} |
Oops, something went wrong.