-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename login template dir to account to match the default name django…
…allauth needs #1895
- Loading branch information
Showing
8 changed files
with
59 additions
and
27 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,59 @@ | ||
{% extends "base/base-full.html" %} | ||
{% load base_tags %} | ||
{% load socialaccount %} | ||
|
||
|
||
|
||
{% load i18n %} | ||
{% load account socialaccount %} | ||
|
||
{% block head_title %} | ||
{% translate "Sign In" %} | ||
{% endblock head_title %} | ||
|
||
{% block main-content-body %} | ||
|
||
{% block inner %} | ||
<h1>{% translate "Sign In" %}</h1> | ||
{% get_providers as socialaccount_providers %} | ||
{% if socialaccount_providers %} | ||
<p> | ||
{% translate "Please sign in with one of your existing third party accounts:" %} | ||
{% if ACCOUNT_ALLOW_REGISTRATION %} | ||
{% blocktranslate trimmed %} | ||
Or, <a href="{{ signup_url }}">sign up</a> | ||
for a {{ site_name }} account and sign in below: | ||
{% endblocktranslate %} | ||
{% endif %} | ||
</p> | ||
<div class="socialaccount_ballot"> | ||
<ul class="socialaccount_providers"> | ||
{% include "socialaccount/snippets/provider_list.html" with process="login" %} | ||
</ul> | ||
<div class="login-or">{% translate "or" %}</div> | ||
</div> | ||
{% include "socialaccount/snippets/login_extra.html" %} | ||
{% else %} | ||
{% if ACCOUNT_ALLOW_REGISTRATION %} | ||
<p> | ||
{% blocktranslate trimmed %} | ||
If you have not created an account yet, then please | ||
<a href="{{ signup_url }}">sign up</a> first. | ||
{% endblocktranslate %} | ||
</p> | ||
{% endif %} | ||
{% 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 %} | ||
<a class="button secondaryAction" | ||
href="{% url 'account_reset_password' %}">{% translate "Forgot Password?" %}</a> | ||
<button class="primaryAction btn btn-primary" type="submit">{% translate "Sign In" %}</button> | ||
</form> | ||
{% endblock inner %} | ||
{% endblock %} |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.