aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-23 15:53:21 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-23 15:53:21 +0100
commit0b52f8d4c49302716915b4a2d756c49688b8d727 (patch)
tree68bd43345cd922cdac89d25543b9e2cd69ce6878
parentbdd921a5ddc0c13dea8bb3555b97c6dd1b6824d1 (diff)
improvements to people list
-rw-r--r--ctrack/organisations/templates/organisations/person_list.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/ctrack/organisations/templates/organisations/person_list.html b/ctrack/organisations/templates/organisations/person_list.html
index 73b8188..80c7d6a 100644
--- a/ctrack/organisations/templates/organisations/person_list.html
+++ b/ctrack/organisations/templates/organisations/person_list.html
@@ -35,6 +35,7 @@
<thead>
<tr>
<th>Person</th>
+ <th>NIS Responsible</th>
<th>Organisation</th>
<th>Phone Number</th>
<th>Email</th>
@@ -44,6 +45,15 @@
{% for p in object_list %}
<tr>
<td><a href="{% url "organisations:person-detail" p.pk %}">{{ p.first_name }} {{ p.last_name }}</a></td>
+ <td>
+ {% if p.primary_nis_contact %}
+ <span class="badge badge-pill badge-success">NIS Primary Contact</span>
+ {% elif p.voluntary_point_of_contact %}
+ Voluntary Point of Contact
+ {% else %}
+ &nbsp;
+ {% endif %}
+ </td>
<td><a href="{% url "organisations:detail" p.organisation.slug %}">{{ p.organisation.name }}</a></td>
<td>{{ p.mobile }}</td>
<td><a href="mailto:{{ p.email }}">{{ p.email }}</a></td>