aboutsummaryrefslogtreecommitdiff
path: root/app/dispatch/templates
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2017-11-10 21:08:11 -0500
committerMitch Riedstra <mitch@riedstra.us>2017-11-10 21:08:11 -0500
commit4d1ce945792648fca00d50ce18a61b775589d9ae (patch)
tree3686b541946af10aae92ef104aa5cbd31483687f /app/dispatch/templates
parent6155857dcd9a88d07756c465df42c5155c7183dc (diff)
downloaddispatch-tracker-4d1ce945792648fca00d50ce18a61b775589d9ae.tar.gz
dispatch-tracker-4d1ce945792648fca00d50ce18a61b775589d9ae.tar.xz
Working invites in the Driver's list page
Diffstat (limited to 'app/dispatch/templates')
-rw-r--r--app/dispatch/templates/dispatch/drivers/list.html5
-rw-r--r--app/dispatch/templates/dispatch/invite_email.txt6
-rw-r--r--app/dispatch/templates/dispatch/invite_user.html23
3 files changed, 31 insertions, 3 deletions
diff --git a/app/dispatch/templates/dispatch/drivers/list.html b/app/dispatch/templates/dispatch/drivers/list.html
index c87f99f..f1e5be6 100644
--- a/app/dispatch/templates/dispatch/drivers/list.html
+++ b/app/dispatch/templates/dispatch/drivers/list.html
@@ -10,6 +10,11 @@
</div>
<div class="row">
+ <div class="col s12 right-align">
+ <a href="{% url 'invite_user' %}" class="btn blue">Invite User</a> </div>
+</div>
+
+<div class="row">
<div class="col s12">
<table class="striped bordered">
<thead>
diff --git a/app/dispatch/templates/dispatch/invite_email.txt b/app/dispatch/templates/dispatch/invite_email.txt
index eb888a6..9c3faf7 100644
--- a/app/dispatch/templates/dispatch/invite_email.txt
+++ b/app/dispatch/templates/dispatch/invite_email.txt
@@ -1,7 +1,7 @@
-Hi {{name}},
+{% autoescape off %}Hi {{name}},
-You've been invited by {{user.first_name}} to register
+You've been invited by {{user.first_name}} to register at {{app_name}}
Please click the following link to start this process
-{{site}}{% url 'registration_register' %}
+{{site}}{% url 'registration_register' %}{% endautoescape %}
diff --git a/app/dispatch/templates/dispatch/invite_user.html b/app/dispatch/templates/dispatch/invite_user.html
new file mode 100644
index 0000000..86dab40
--- /dev/null
+++ b/app/dispatch/templates/dispatch/invite_user.html
@@ -0,0 +1,23 @@
+{% extends 'dispatch/base.html' %}
+
+{% block title %}Invite User{% endblock %}
+
+{% block content %}
+
+
+<div class="row">
+ <div class="col s12">
+
+ <form action="" method="post">{% csrf_token %}
+ {% for field in form %}
+ <p>
+ {{field.label_tag}} {{field}}
+ </p>
+ {% endfor %}
+ <input type="submit" class="btn blue" value="Update" />
+ </form>
+
+ </div>
+</div>
+
+{% endblock %}