2021-08-29 00:20:02 +02:00
|
|
|
{% extends "base.html" %}
|
2021-09-25 20:31:08 +02:00
|
|
|
{% load i18n %}
|
2021-08-29 00:20:02 +02:00
|
|
|
{% load django_bootstrap5 %}
|
|
|
|
{% load static %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block mainpage %}
|
2021-09-25 20:31:08 +02:00
|
|
|
<h1>{% translate "Login" %}</h1>
|
2021-08-29 00:20:02 +02:00
|
|
|
|
|
|
|
{% if next %}
|
2021-09-25 20:31:08 +02:00
|
|
|
<div class="alert alert-info">
|
|
|
|
{% blocktranslate %}You need to log in before you can access <code>{{ next }}</code>.{% endblocktranslate %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-08-29 00:20:02 +02:00
|
|
|
|
2021-09-25 20:31:08 +02:00
|
|
|
<form method="post" class="form">
|
|
|
|
{% csrf_token %}
|
|
|
|
{% bootstrap_form form %}
|
|
|
|
{% url 'admin_password_reset' as password_reset_url %}
|
|
|
|
<div class="password-reset-link">
|
|
|
|
<a href="{% url 'password_reset' %}">{% translate "Forgotten your password or username?" %}</a>
|
|
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-lg btn-primary btn-block">
|
|
|
|
{% translate "Log in" %}
|
|
|
|
</button>
|
|
|
|
</form>
|
2021-08-29 00:20:02 +02:00
|
|
|
{% endblock %}
|