47 lines
2 KiB
HTML
47 lines
2 KiB
HTML
{% extends "account/base.html" %}
|
|
{% comment %}
|
|
This file is part of photo21
|
|
Copyright (C) 2022 Amicale des élèves de l'ENS Paris-Saclay
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
{% endcomment %}
|
|
{% load i18n crispy_forms_tags account socialaccount %}
|
|
{% block head_title %}{% trans "Sign In" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="card mx-auto login">
|
|
<h3 class="card-header text-center">
|
|
{% trans "Sign In" %}
|
|
</h3>
|
|
<div class="card-body">
|
|
{% get_providers as socialaccount_providers %}
|
|
{% if socialaccount_providers %}
|
|
<p>{% blocktrans trimmed 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" %}
|
|
|
|
{% else %}
|
|
<p>{% blocktrans trimmed %}If you have not created an account yet, then please
|
|
<a href="{{ signup_url }}">sign up</a> first.{% endblocktrans %}</p>
|
|
{% endif %}
|
|
|
|
<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 %}
|
|
<button type="submit" class="btn btn-primary mt-2">{% trans "Sign In" %}</button>
|
|
<a class="btn mt-2" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<p class="small text-center mt-1">{% trans "If any problem, please contact the server owners at" %} <code>photos[at]crans.org</code>.</p>
|
|
{% endblock %}
|