diff options
Diffstat (limited to 'app/dispatch/templates')
| -rw-r--r-- | app/dispatch/templates/dispatch/drivers/list.html | 5 | ||||
| -rw-r--r-- | app/dispatch/templates/dispatch/invite_email.txt | 6 | ||||
| -rw-r--r-- | app/dispatch/templates/dispatch/invite_user.html | 23 |
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 %} |
