2015-01-17 23:08:41 +01:00
|
|
|
{% extends "account/base.html" %}
|
2015-12-19 20:11:23 +01:00
|
|
|
{% load account socialaccount crispy_forms_tags i18n %}
|
2015-01-17 23:08:41 +01:00
|
|
|
|
2023-04-16 22:11:32 +02:00
|
|
|
{% block title %}{{ block.super }} - {% translate "Sign In" %}{% endblock title %}
|
|
|
|
{% block page_title %}{% translate "Sign In" %}{% endblock page_title %}
|
2015-01-17 23:08:41 +01:00
|
|
|
|
|
|
|
{% block content %}
|
2023-04-14 19:56:41 +02:00
|
|
|
{% get_providers as socialaccount_providers %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 col-12">
|
|
|
|
<form class="login form" 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 %}
|
2023-04-29 12:35:49 +02:00
|
|
|
<a class="btn btn-secondary" href="{% url 'account_reset_password' %}">{% translate "Forgot Password?" %}</a>
|
2023-04-16 22:11:32 +02:00
|
|
|
<button class="btn btn-primary" type="submit">{% translate "Sign In" %}</button>
|
2023-04-14 19:56:41 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6 col-12">
|
|
|
|
{% if socialaccount_providers %}
|
|
|
|
<ul class="list-inline">
|
|
|
|
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-01-17 23:08:41 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extra_js %}
|
2023-04-14 19:56:41 +02:00
|
|
|
{% include "socialaccount/snippets/login_extra.html" %}
|
2015-01-17 23:08:41 +01:00
|
|
|
{% endblock extra_js %}
|