From 69d5a098f830128414f178d9382c65221f06e4bb Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 10 Nov 2017 15:25:29 -0500 Subject: Initial version of registration system--needs work --- app/dispatch/templates/dispatch/drivers/edit.html | 6 +++++- app/dispatch/templates/registration/activate.html | 12 +++++++++++ .../registration/activation_complete.html | 14 +++++++++++++ .../templates/registration/activation_email.txt | 4 ++++ .../registration/activation_email_subject.txt | 1 + .../registration/registration_complete.html | 12 +++++++++++ .../templates/registration/registration_form.html | 23 ++++++++++++++++++++++ 7 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 app/dispatch/templates/registration/activate.html create mode 100644 app/dispatch/templates/registration/activation_complete.html create mode 100644 app/dispatch/templates/registration/activation_email.txt create mode 100644 app/dispatch/templates/registration/activation_email_subject.txt create mode 100644 app/dispatch/templates/registration/registration_complete.html create mode 100644 app/dispatch/templates/registration/registration_form.html (limited to 'app/dispatch') diff --git a/app/dispatch/templates/dispatch/drivers/edit.html b/app/dispatch/templates/dispatch/drivers/edit.html index ef27923..35dc15f 100644 --- a/app/dispatch/templates/dispatch/drivers/edit.html +++ b/app/dispatch/templates/dispatch/drivers/edit.html @@ -10,7 +10,11 @@
{% csrf_token %} - {{ form.as_p }} + {% for field in form %} +

+ {{field.label_tag}} {{field}} +

+ {% endfor %}
{% endblock %} 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 %} +
+
+

Sorry, we do not have an activation key that matches what you've + provided. Please submit a new registration request.

+
+ +{% 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 %} +
+
+

+ Your Account activation was successful! +

+
+
+ +{% 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 %} +
+
+

A registration request has been sent. Please check the email you provided for further instructions

+
+
+ +{% 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 %} +
+
+

Send a registration request with the following form

+
+
+ +
{% csrf_token %} + {% for field in form %} +

+ {{field.label_tag}} {{field}} +

+ {% endfor %} +
+ +
+
+ +{% endblock %} -- cgit v1.2.3