2020-06-01 11:03:21 +02:00
|
|
|
{% extends "base.html" %}
|
2020-06-13 22:36:46 +02:00
|
|
|
{% load bootstrap4 %}
|
2020-06-01 11:03:21 +02:00
|
|
|
{% load static %}
|
|
|
|
|
2020-06-13 22:36:46 +02:00
|
|
|
{% block heading %}
|
|
|
|
<h1>Login</h1>
|
2020-06-01 11:03:21 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
2020-06-13 22:36:46 +02:00
|
|
|
{#{% block containerclasses %}text-center{% endblock %}#}
|
|
|
|
{% block extra_head %}
|
|
|
|
{# <link rel="stylesheet" href="{% static "login.css" %}">#}
|
2020-06-01 11:03:21 +02:00
|
|
|
|
2020-06-13 22:36:46 +02:00
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% if next %}
|
|
|
|
<div class="alert alert-info">
|
|
|
|
You need to log in before you can access
|
|
|
|
<code>{{ next }}</code>.
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-06-01 11:03:21 +02:00
|
|
|
|
2020-06-13 22:36:46 +02:00
|
|
|
<form action="{% url 'login' %}" 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' %}">Forgotten your password or username?</a>
|
|
|
|
</div>
|
|
|
|
{% buttons %}
|
|
|
|
<button type="submit" class="btn btn-lg btn-primary btn-block">
|
|
|
|
Sign in
|
|
|
|
</button>
|
|
|
|
{% endbuttons %}
|
|
|
|
</form>
|
2020-06-01 11:03:21 +02:00
|
|
|
{% endblock %}
|