pflaenz.li/pflaenzli/pflaenzli/templates/registration/login.html
Jannis Portmann 799f0be53e
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is failing
Add translated strings
2023-05-16 23:36:40 +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 %}