pflaenz.li/pflaenzli/templates/registration/login.html
Jannis Portmann 53b0c87906 Basic layout
2023-02-19 21:37:53 +01:00

21 lines
736 B
HTML

{% extends "base.html" %}
{% load crispy_forms_tags %}
{% block content %}
{% if next %}
{% if user.is_authenticated %}
<p>Your account doesn't have access to this page. To proceed, please login with an account that has access.</p>
{% else %}
<p>Please login to see this page.</p>
{% 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' %}">Forgot password?</a>
</p>
{% endblock %}