diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-31 20:09:27 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-31 21:18:28 +0100 |
commit | fab21cad7fa2e85633e993c87cc11db52eae4f13 (patch) | |
tree | fc390a6875060bac31d838e1d09f941cba789cb0 /ctrack/organisations/templates | |
parent | 41f81ff7952630d68eeadde458b480740030e557 (diff) |
working on test for cct_user to view person list
Diffstat (limited to 'ctrack/organisations/templates')
-rw-r--r-- | ctrack/organisations/templates/organisations/person_list.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ctrack/organisations/templates/organisations/person_list.html b/ctrack/organisations/templates/organisations/person_list.html new file mode 100644 index 0000000..2e9d333 --- /dev/null +++ b/ctrack/organisations/templates/organisations/person_list.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} + +{% block title %} + People +{% endblock %} + +{% block content %} + + <div class="container mt-3"> + <div class="row"> + <div class="col-md-12 pl-0 my-2"> + <div class="row"> + <div class="col-12"> + <h4>People <span class="float-right align-bottom"><a href="{% url "organisations:create" %}"><button type="button" class="btn btn-primary">Create new...</button></a></span></h4> + </div> + </div> + <div class="row"> + <div class="col-md-12 border bg-light my-2"> + <table class="table compact cell-border"> + <thead> + <tr> + <th>Person</th> + <th>Organisation</th> + </tr> + </thead> + {% for p in object_list %} + <tr> + <td><a href="#">{{ p.first_name }} {{ p.last_name }}</a></td> + <td>{{ p.organisation.name }}</td> + </tr> + {% endfor %} + </table> + </div> + </div> + </div> + </div> + </div> + +{% endblock content %} |