mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-03-30 06:24:14 +03:00
Single space between delimiter matches prescribed Django template style and is consistent with the style those really smart people used in Two Scoops of Django.
50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
{% raw %}{% extends "account/base.html" %}
|
|
|
|
{% load i18n %}
|
|
{% load account %}
|
|
{% load url from future %}
|
|
{% load crispy_forms_tags %}
|
|
|
|
{% block head_title %}{% trans "Sign In" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-5">
|
|
|
|
|
|
<h2>{% trans "Sign In" %}</h2>
|
|
|
|
{% if socialaccount.providers %}
|
|
<p>{% blocktrans with site.name as site_name %}Please sign in with one
|
|
of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a>
|
|
for a {{ site_name }} account and sign in below:{% 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" %}
|
|
|
|
{% endif %}
|
|
|
|
<form class="login" method="POST" action="{% url 'account_login' %}">
|
|
{% csrf_token %}
|
|
{{ form|crispy }}
|
|
{% 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' %}">{% trans "Forgot Password?" %}</a>
|
|
<button class="btn btn-primary" type="submit">{% trans "Sign In" %}</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
{% endraw %} |