25 lines
885 B
HTML
25 lines
885 B
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
{% load crispy_forms_tags %}
|
|
{% block content %}
|
|
{% if next %}
|
|
{% if user.is_authenticated %}
|
|
<div class="alert alert-warning">
|
|
{% trans "Your account doesn't have access to this page. To proceed, please login with an account that has access." %}
|
|
</div>
|
|
{% else %}
|
|
<div class="alert alert-info">{% trans "Please login to see this page" %}.</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
<h1 class="mb-3">Login</h1>
|
|
<form method="post" action="{% url 'login' %}">
|
|
{% csrf_token %}
|
|
{{ form|crispy }}
|
|
<input type="submit" value="Login" class="mb-3 btn btn-pfl">
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
</form>
|
|
<p>
|
|
<a href="{% url 'password_reset' %}">{% trans "Forgot password?" %}</a>
|
|
</p>
|
|
{% endblock %}
|