pflaenz.li/pflaenzli/pflaenzli/templates/registration/login.html
Jannis Portmann 7749d98e87
Some checks reported errors
continuous-integration/drone/push Build was killed
Imoprove translation
2023-05-17 15:48:23 +02:00

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 %}