diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-10 15:25:29 -0500 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-10 15:25:29 -0500 |
| commit | 69d5a098f830128414f178d9382c65221f06e4bb (patch) | |
| tree | 0a0d6346d5b39634e19ce01689498d9ccf4e867c /app/dispatch | |
| parent | c80bafec506beef3184381ae7f9b55edd438e45a (diff) | |
| download | dispatch-tracker-69d5a098f830128414f178d9382c65221f06e4bb.tar.gz dispatch-tracker-69d5a098f830128414f178d9382c65221f06e4bb.tar.xz | |
Initial version of registration system--needs work
Diffstat (limited to 'app/dispatch')
7 files changed, 71 insertions, 1 deletions
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 @@ </div> <form action="" method="post">{% csrf_token %} - {{ form.as_p }} + {% for field in form %} + <p> + {{field.label_tag}} {{field}} + </p> + {% endfor %} <input type="submit" class="btn blue" value="Update" /> </form> {% 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 %} +<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 %} |
