diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-09-14 11:39:13 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-09-14 11:39:13 +0100 |
commit | 0889c968f015f6525e5fc6f01fdfe2255289d1e3 (patch) | |
tree | 6e1bf544708a55327e86dffd2e244b23c3346970 | |
parent | ca8292a35d9088524b60c76640ed46e550904db7 (diff) |
tidied up person detail page
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 2 | ||||
-rw-r--r-- | ctrack/organisations/templates/organisations/person_detail.html | 24 |
2 files changed, 19 insertions, 7 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index e05d33d..c47d782 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -231,7 +231,7 @@ <div class="col-md-7 my-2"> <div class="card bg-light"> <div class="card-body"> - <h5 class="card-title">{{ p.first_name }} {{ p.last_name }}</h5> + <h5 class="card-title"><a href="{% url "organisations:person-detail" p.id %}">{{ p.first_name }} {{ p.last_name }}</a></h5> <h6 class="card-subtitle mb-2 text-muted">{{ p.job_title }}</h6> <div class="table-responsive"> <table class="table"> diff --git a/ctrack/organisations/templates/organisations/person_detail.html b/ctrack/organisations/templates/organisations/person_detail.html index d434d20..1bedb35 100644 --- a/ctrack/organisations/templates/organisations/person_detail.html +++ b/ctrack/organisations/templates/organisations/person_detail.html @@ -27,7 +27,7 @@ </tr> <tr class="d-flex"> <td class="col-3"><strong>Organisation</strong></td> - <td class="col-9">{{ person.organisation.name }}</td> + <td class="col-9"><a href="{% url "organisations:detail" person.organisation.slug %}">{{ person.organisation.name }}</a></td> </tr> <tr class="d-flex"> <td class="col-3"><strong>Role</strong></td> @@ -35,23 +35,35 @@ </tr> <tr class="d-flex"> <td class="col-3"><strong>NIS Primary Point of Contact</strong></td> - <td class="col-9">{{ person.primary_nis_contact }}</td> + {% if person.primary_nis_contact %} + <td class="col-9">Yes</td> + {% else %} + <td class="col-9">No</td> + {% endif %} </tr> <tr class="d-flex"> <td class="col-3"><strong>Voluntary Point of Contact</strong></td> - <td class="col-9">{{ person.voluntary_point_of_contact }}</td> + {% if person.voluntary_point_of_contact %} + <td class="col-9">Yes</td> + {% else %} + <td class="col-9">No</td> + {% endif %} </tr> <tr class="d-flex"> <td class="col-3"><strong>Has Egress</strong></td> - <td class="col-9">{{ person.has_egress }}</td> + {% if person.has_egress %} + <td class="col-9">Yes</td> + {% else %} + <td class="col-9">No</td> + {% endif %} </tr> <tr class="d-flex"> <td class="col-3"><strong>Email</strong></td> - <td class="col-9">{{ person.email }}</td> + <td class="col-9"><a href="mailto:{{ person.email }}">{{ person.email }}</a></td> </tr> <tr class="d-flex"> <td class="col-3"><strong>Secondary Email</strong></td> - <td class="col-9">{{ person.secondary_email }}</td> + <td class="col-9"><a href="mailto:{{ person.secondary_email }}">{{ person.secondary_email }}</a></td> </tr> <tr class="d-flex"> <td class="col-3"><strong>Mobile Phone</strong></td> |