aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/organisations/templates')
-rw-r--r--ctrack/organisations/templates/organisations/organisation_list.html43
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 %}