2019-08-11 14:21:59 +00:00
|
|
|
{% extends "base.html" %}
|
2019-08-10 17:00:16 +00:00
|
|
|
{% comment %}
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
{% endcomment %}
|
2019-08-14 13:15:38 +00:00
|
|
|
{% load i18n crispy_forms_tags %}
|
2019-08-10 17:00:16 +00:00
|
|
|
|
2019-08-11 14:21:59 +00:00
|
|
|
{% block title %}{% trans "Log in" %}{% endblock %}
|
2019-08-14 13:15:38 +00:00
|
|
|
{% block contenttitle %}<h1>{% trans "Log in" %}</h1>{% endblock %}
|
2019-08-11 14:21:59 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2019-08-14 13:15:38 +00:00
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<p class="errornote">
|
2020-07-29 09:38:59 +00:00
|
|
|
{% blocktrans trimmed with username=request.user.username %}
|
2019-08-14 13:15:38 +00:00
|
|
|
You are authenticated as {{ username }}, but are not authorized to
|
2020-07-29 09:38:59 +00:00
|
|
|
access this page. Would you like to login to a different account,
|
|
|
|
or with a higher permission mask?
|
2019-08-14 13:15:38 +00:00
|
|
|
{% endblocktrans %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
|
|
|
|
{{ form | crispy }}
|
|
|
|
<input type="submit" value="{% trans 'Log in' %}" class="btn btn-primary">
|
|
|
|
<a href="{% url 'password_reset' %}" class="badge badge-light">{% trans 'Forgotten your password or username?' %}</a>
|
|
|
|
</form>
|
2019-08-11 14:21:59 +00:00
|
|
|
{% endblock %}
|