summaryrefslogtreecommitdiff
path: root/templates/registration
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-07-24 15:19:56 -0500
committerluxagraf <sng@luxagraf.net>2023-07-24 15:19:56 -0500
commitdc7a649e783546c8e8a47bc004be3799b1b60d1a (patch)
tree9fc591eea6fcc9bfe62746bb08310510e1200fa2 /templates/registration
parentd5c3fdc2be4cf7e19102218aea980ff2f52fc02b (diff)
notes: rearranged some things, added registration templates
Diffstat (limited to 'templates/registration')
-rw-r--r--templates/registration/login.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/templates/registration/login.html b/templates/registration/login.html
new file mode 100644
index 0000000..a7e7978
--- /dev/null
+++ b/templates/registration/login.html
@@ -0,0 +1,38 @@
+{% extends 'base.html' %}
+{% block primary %}
+<main class="narrow">
+<form class="form-narrow" method="post" action="{% url 'login' %}">
+<legend class="fancy-legend">Login to {{site.name}}</legend>
+{% if form.errors %}
+<p>Your username and password didn't match. Please try again.</p>
+{% endif %}
+
+{% if next %}
+ {% if user.is_authenticated %}
+ <p>Your account doesn't have access to this page. To proceed,
+ please login with an account that has access.</p>
+ {% else %}
+ <p>Please login to see this page.</p>
+ {% endif %}
+{% endif %}
+
+{% csrf_token %}
+<fieldset>
+ {{ form.username.label_tag }}
+ {{ form.username }}
+</fieldset>
+<fieldset>
+ {{ form.password.label_tag }}
+ {{ form.password }}
+</fieldset>
+
+<input type="submit" class="btn sm" value="login">
+<input type="hidden" name="next" value="{{ next }}">
+</form>
+
+{# Assumes you setup the password_reset view in your URLconf #}
+<hr />
+<!--comment <p class="text-center">No account yet? <a href="/register/">Sign up</a>.<br>-->
+<a href="{% url 'password_reset' %}">Forgot your password?</a></p>
+</main>
+{% endblock %}