summaryrefslogtreecommitdiffstats
path: root/templates/auth
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 19:16:34 -0700
committerAndrew Godwin2022-11-17 19:16:34 -0700
commit6adfdbabe0d44c17f32abc9d48a6e252e2a0792e (patch)
tree6644c5eeab7970a9f9b8d9540b7ebe28cc499331 /templates/auth
parent2a3690d1c148da5dd799052403ba7290e1fb7de0 (diff)
downloadtakahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.gz
takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.bz2
takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.zip
Add signup and password reset
Diffstat (limited to 'templates/auth')
-rw-r--r--templates/auth/reset.html20
-rw-r--r--templates/auth/reset_success.html14
-rw-r--r--templates/auth/signup.html18
-rw-r--r--templates/auth/signup_success.html15
4 files changed, 67 insertions, 0 deletions
diff --git a/templates/auth/reset.html b/templates/auth/reset.html
new file mode 100644
index 0000000..42eced9
--- /dev/null
+++ b/templates/auth/reset.html
@@ -0,0 +1,20 @@
+{% extends "base.html" %}
+
+{% block title %}Reset Password{% endblock %}
+
+{% block content %}
+ <form action="." method="POST">
+ {% csrf_token %}
+ <fieldset>
+ <legend>Reset Password</legend>
+ <p>You are resetting your password for {{ reset.user.email }}.</p>
+ <p>Please choose your new password below.</p>
+ {% for field in form %}
+ {% include "forms/_field.html" %}
+ {% endfor %}
+ </fieldset>
+ <div class="buttons">
+ <button>Reset</button>
+ </div>
+ </form>
+{% endblock %}
diff --git a/templates/auth/reset_success.html b/templates/auth/reset_success.html
new file mode 100644
index 0000000..001e5d7
--- /dev/null
+++ b/templates/auth/reset_success.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}Password Reset{% endblock %}
+
+{% block content %}
+ <form>
+ <fieldset>
+ <legend>Password Reset</legend>
+ <p>
+ Your password for <tt>{{ email }}</tt> has been reset!
+ </p>
+ </fieldset>
+ </form>
+{% endblock %}
diff --git a/templates/auth/signup.html b/templates/auth/signup.html
new file mode 100644
index 0000000..d519476
--- /dev/null
+++ b/templates/auth/signup.html
@@ -0,0 +1,18 @@
+{% extends "base.html" %}
+
+{% block title %}Create Account{% endblock %}
+
+{% block content %}
+ <form action="." method="POST">
+ {% csrf_token %}
+ <fieldset>
+ <legend>Create An Account</legend>
+ {% for field in form %}
+ {% include "forms/_field.html" %}
+ {% endfor %}
+ </fieldset>
+ <div class="buttons">
+ <button>Create</button>
+ </div>
+ </form>
+{% endblock %}
diff --git a/templates/auth/signup_success.html b/templates/auth/signup_success.html
new file mode 100644
index 0000000..20fc7c2
--- /dev/null
+++ b/templates/auth/signup_success.html
@@ -0,0 +1,15 @@
+{% extends "base.html" %}
+
+{% block title %}Email Sent{% endblock %}
+
+{% block content %}
+ <form>
+ <fieldset>
+ <legend>Email Sent</legend>
+ <p>
+ An email has been sent to <tt>{{ email }}</tt> - please follow
+ the link inside to finish creating your account.
+ </p>
+ </fieldset>
+ </form>
+{% endblock %}