2023-02-20 16:53:45 +00:00
|
|
|
{% extends request.content_only|yesno:"empty.html,base.html" %}
|
2020-12-27 10:49:54 +00:00
|
|
|
{% comment %}
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
{% endcomment %}
|
|
|
|
{% load i18n crispy_forms_filters %}
|
|
|
|
|
|
|
|
{% block title %}{% trans "Log in" %}{% endblock %}
|
2024-02-11 17:43:23 +00:00
|
|
|
{% block content-title %}<h1>{% trans "Log in" %}</h1>{% endblock %}
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<p class="errornote">
|
|
|
|
{% blocktrans trimmed %}
|
|
|
|
You are authenticated as {{ user }}, but are not authorized to
|
|
|
|
access this page. Would you like to login to a different account?
|
|
|
|
{% endblocktrans %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
<form method="post" id="login-form">
|
|
|
|
<div id="form-content">
|
2024-01-18 18:53:12 +00:00
|
|
|
{{ form|as_crispy_errors }}
|
2020-12-27 10:49:54 +00:00
|
|
|
{% csrf_token %}
|
2024-01-18 18:53:12 +00:00
|
|
|
{{ form.username|as_crispy_field }}
|
|
|
|
<div class="form-text mb-3">
|
|
|
|
<i class="fas fa-info-circle"></i> {% trans "Your username is your e-mail address." %}
|
|
|
|
</div>
|
|
|
|
{{ form.password|as_crispy_field }}
|
|
|
|
<a href="{% url 'password_reset' %}" class="badge text-bg-warning">{% trans 'Forgotten your password?' %}</a>
|
2020-12-27 10:49:54 +00:00
|
|
|
</div>
|
|
|
|
<input type="submit" value="{% trans 'Log in' %}" class="btn btn-primary">
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|