pflaenz.li/pflaenzli/pflaenzli/templates/registration/login.html

25 lines
885 B
HTML
Raw Normal View History

2023-02-19 21:37:53 +01:00
{% extends "base.html" %}
2023-05-16 23:36:40 +02:00
{% load i18n %}
2023-02-19 21:37:53 +01:00
{% load crispy_forms_tags %}
{% block content %}
{% if next %}
{% if user.is_authenticated %}
2023-05-16 23:36:40 +02:00
<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>
2023-02-19 21:37:53 +01:00
{% else %}
2023-05-17 15:48:23 +02:00
<div class="alert alert-info">{% trans "Please login to see this page" %}.</div>
2023-02-19 21:37:53 +01:00
{% 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>
2023-05-16 23:36:40 +02:00
<a href="{% url 'password_reset' %}">{% trans "Forgot password?" %}</a>
2023-02-19 21:37:53 +01:00
</p>
{% endblock %}