pflaenz.li/pflaenzli/pflaenzli/templates/registration/login.html
Jannis Portmann 68d3571b4f Add title
2023-09-15 11:41:36 +02:00

33 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}
Login
{% endblock title %}
{% 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>
<hr>
<h2>Need an account?</h2>
<a href="{% url 'register_user' %}"
class="btn btn-pfl-secondary me-1"
type="button">{% trans "Register" %}</a>
{% endblock %}