aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates/registration
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2017-11-10 15:25:29 -0500
committerMitch Riedstra <Mitch@riedstra.us>2017-11-10 15:25:29 -0500
commit69d5a098f830128414f178d9382c65221f06e4bb (patch)
tree0a0d6346d5b39634e19ce01689498d9ccf4e867c /app/dispatch/templates/registration
parentc80bafec506beef3184381ae7f9b55edd438e45a (diff)
downloaddispatch-tracker-69d5a098f830128414f178d9382c65221f06e4bb.tar.gz
dispatch-tracker-69d5a098f830128414f178d9382c65221f06e4bb.tar.xz
Initial version of registration system--needs work
Diffstat (limited to 'app/dispatch/templates/registration')
-rw-r--r--app/dispatch/templates/registration/activate.html12
-rw-r--r--app/dispatch/templates/registration/activation_complete.html14
-rw-r--r--app/dispatch/templates/registration/activation_email.txt4
-rw-r--r--app/dispatch/templates/registration/activation_email_subject.txt1
-rw-r--r--app/dispatch/templates/registration/registration_complete.html12
-rw-r--r--app/dispatch/templates/registration/registration_form.html23
6 files changed, 66 insertions, 0 deletions
diff --git a/app/dispatch/templates/registration/activate.html b/app/dispatch/templates/registration/activate.html
new file mode 100644
index 0000000..f8da830
--- /dev/null
+++ b/app/dispatch/templates/registration/activate.html
@@ -0,0 +1,12 @@
+{% extends 'dispatch/base.html' %}
+
+{% block title %}Register{% endblock %}
+
+{% block content %}
+<div class="row">
+ <div class="col s12">
+ <p>Sorry, we do not have an activation key that matches what you've
+ provided. Please submit a new registration request.</p> </div>
+</div>
+
+{% endblock %}
diff --git a/app/dispatch/templates/registration/activation_complete.html b/app/dispatch/templates/registration/activation_complete.html
new file mode 100644
index 0000000..6f8929e
--- /dev/null
+++ b/app/dispatch/templates/registration/activation_complete.html
@@ -0,0 +1,14 @@
+{% extends 'dispatch/base.html' %}
+
+{% block title %}Register{% endblock %}
+
+{% block content %}
+<div class="row">
+ <div class="col s12">
+ <p>
+ Your Account activation was successful!
+ </p>
+ </div>
+</div>
+
+{% endblock %}
diff --git a/app/dispatch/templates/registration/activation_email.txt b/app/dispatch/templates/registration/activation_email.txt
new file mode 100644
index 0000000..66b7b05
--- /dev/null
+++ b/app/dispatch/templates/registration/activation_email.txt
@@ -0,0 +1,4 @@
+Activation key: {{activation_key}}
+Site: {{site}}
+Expiration date: {{expiration_days}}
+User model {{user}}
diff --git a/app/dispatch/templates/registration/activation_email_subject.txt b/app/dispatch/templates/registration/activation_email_subject.txt
new file mode 100644
index 0000000..5c9c72f
--- /dev/null
+++ b/app/dispatch/templates/registration/activation_email_subject.txt
@@ -0,0 +1 @@
+Activation request for {{user.first_name}} {{user.last_name}} at {{site}}
diff --git a/app/dispatch/templates/registration/registration_complete.html b/app/dispatch/templates/registration/registration_complete.html
new file mode 100644
index 0000000..579b914
--- /dev/null
+++ b/app/dispatch/templates/registration/registration_complete.html
@@ -0,0 +1,12 @@
+{% extends 'dispatch/base.html' %}
+
+{% block title %}Register{% endblock %}
+
+{% block content %}
+<div class="row">
+ <div class="col s12">
+ <p>A registration request has been sent. Please check the email you provided for further instructions</p>
+ </div>
+</div>
+
+{% endblock %}
diff --git a/app/dispatch/templates/registration/registration_form.html b/app/dispatch/templates/registration/registration_form.html
new file mode 100644
index 0000000..eda9294
--- /dev/null
+++ b/app/dispatch/templates/registration/registration_form.html
@@ -0,0 +1,23 @@
+{% extends 'dispatch/base.html' %}
+
+{% block title %}Register{% endblock %}
+
+{% block content %}
+<div class="row">
+ <div class="col s12">
+ <p>Send a registration request with the following form</p>
+ </div>
+</div>
+
+<form action="" method="post">{% csrf_token %}
+ {% for field in form %}
+ <p>
+ {{field.label_tag}} {{field}}
+ </p>
+ {% endfor %}
+ <div class="right-align">
+ <input type="submit" class="btn blue" value="Submit" />
+ </div>
+</form>
+
+{% endblock %}