diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-07 13:02:09 -0500 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-07 13:02:09 -0500 |
| commit | c055260bb88fd407c81ad0d40dd288a5aae4fb17 (patch) | |
| tree | 55e4786222eadd95c94407dda120815ff79dd068 /app/dispatch/templates | |
| parent | 62f8c5e35949e41ecf777c36736bae1caa007179 (diff) | |
| download | dispatch-tracker-c055260bb88fd407c81ad0d40dd288a5aae4fb17.tar.gz dispatch-tracker-c055260bb88fd407c81ad0d40dd288a5aae4fb17.tar.xz | |
Updated middleware to force creation of user Identity. Fix issues with Identity creation. Added is_active to Django Admin UI for the dispatchAuth.models.User
Diffstat (limited to 'app/dispatch/templates')
| -rw-r--r-- | app/dispatch/templates/dispatch/identity/create.html | 8 | ||||
| -rw-r--r-- | app/dispatch/templates/dispatch/nav.html | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/app/dispatch/templates/dispatch/identity/create.html b/app/dispatch/templates/dispatch/identity/create.html index 90cdd8e..ab7b805 100644 --- a/app/dispatch/templates/dispatch/identity/create.html +++ b/app/dispatch/templates/dispatch/identity/create.html @@ -8,6 +8,14 @@ </div> </div> +<div class="row"> + <div class="col s12"> + <p class="flow-text"> + Your user account does not have a company identity. Please fill out the form to create one at this time. + </p> + </div> +</div> + <form action="" method="post">{% csrf_token %} {{ form.as_p }} <input type="submit" class="btn green" value="Save" /> diff --git a/app/dispatch/templates/dispatch/nav.html b/app/dispatch/templates/dispatch/nav.html index a5f09e5..ef65d24 100644 --- a/app/dispatch/templates/dispatch/nav.html +++ b/app/dispatch/templates/dispatch/nav.html @@ -1,4 +1,8 @@ -{% if request.user.is_authenticated %} +{% if False %} # Checking for user identity and limiting the nav if it doesn't exist {% endif %} + +{% if not request.user.identity %} + <li><a href="{% url 'logout' %}">Logout</a></li> +{% elif request.user.is_authenticated %} <li><a href="{% url 'load_list' %}">Loads</a></li> <li><a href="{% url 'invoice_list' %}">Invoices</a></li> {% if request.user.is_superuser %} |
