From 4d1ce945792648fca00d50ce18a61b775589d9ae Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 10 Nov 2017 21:08:11 -0500 Subject: Working invites in the Driver's list page --- app/dispatch/templates/dispatch/drivers/list.html | 5 +++++ app/dispatch/templates/dispatch/invite_email.txt | 6 +++--- app/dispatch/templates/dispatch/invite_user.html | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 app/dispatch/templates/dispatch/invite_user.html (limited to 'app/dispatch/templates') 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 @@ -9,6 +9,11 @@ +
+ +
+
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 %} + + +
+
+ +
{% csrf_token %} + {% for field in form %} +

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

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