diff options
author | MR Lemon <matt@matthewlemon> | 2020-04-21 16:58:54 +0100 |
---|---|---|
committer | MR Lemon <matt@matthewlemon> | 2020-04-21 16:59:33 +0100 |
commit | 4d09daf0de083407b57be6d8bee9bcb6b6f1bcc9 (patch) | |
tree | 7ce2377a4936c2c8429c1bc9cf2b5fdcf605888b /ctrack/organisations/templates | |
parent | 271409371dc71b6c9108b2e56cb82ff8ce74415f (diff) |
added organisation list view
Diffstat (limited to 'ctrack/organisations/templates')
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_list.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_list.html b/ctrack/organisations/templates/organisations/organisation_list.html new file mode 100644 index 0000000..67c62b8 --- /dev/null +++ b/ctrack/organisations/templates/organisations/organisation_list.html @@ -0,0 +1,43 @@ +{% extends "base.html" %} + +{% block content %} + <div class="container"> + + <div class="row"> + <h2>Organisations</h2> + </div> + + <div class="row"> + <div class="col-sm-12"> + <table class="table table-sm"> + <thead> + <tr> + <th>Organisation</th> + <th>Sub-mode</th> + <th>Lead Inspector</th> + <th>Point of Contact</th> + </tr> + </thead> + {% for org in organisation_list %} + <tr> + <td><a href="{% url "organisations:detail" org.slug %}">{{ org.name }}</a></td> + <td>{{ org.submode }}</td> + <td>LEAD INSPECTOR</td> + <td> + {% if org.primary_contacts %} + <ul style="list-style-type:none; float:left; padding: 0"> + {% for p in org.primary_contacts %} + <li>{{ p }} | {{ p.mobile }}</li> + {% endfor %} + </ul> + {% else %} + No contact listed + {% endif %} + </td> + </tr> + {% endfor %} + </table> + </div> + </div> + +{% endblock content %} |