From d7a5c36bd8f18a8acd448331b2564ed0e42f28f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Ba=C3=B1ados=20Schwerter?= Date: Mon, 20 Jan 2025 22:42:46 +0000 Subject: [PATCH] Added login template --- .../templates/registration/login.html | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/morphodict/frontend/templates/registration/login.html diff --git a/src/morphodict/frontend/templates/registration/login.html b/src/morphodict/frontend/templates/registration/login.html new file mode 100644 index 000000000..9c869ef3c --- /dev/null +++ b/src/morphodict/frontend/templates/registration/login.html @@ -0,0 +1,38 @@ +{% extends "morphodict/base.html" %} + +{% block content %} + +{% if form.errors %} +

Your username and password didn't match. Please try again.

+{% endif %} + +{% if next %} + {% if user.is_authenticated %} +

Your account doesn't have access to this page. To proceed, + please login with an account that has access.

+ {% else %} +

Please login to see this page.

+ {% endif %} +{% endif %} + +
+{% csrf_token %} + + + + + + + + + +
{{ form.username.label_tag }}{{ form.username }}
{{ form.password.label_tag }}{{ form.password }}
+ + + +
+ +{# Assumes you set up the password_reset view in your URLconf #} +{#

Lost password?

#} + +{% endblock %} \ No newline at end of file