diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-03-06 21:23:42 +0000 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-03-06 21:23:42 +0000 |
commit | adeb0b35bdf0fdaa1f7c718410660d1eef0a9524 (patch) | |
tree | 632f689c07d1236fdc8abd2d7f12ddde45c342a9 /ctrack | |
parent | 420eb8308847e413d63b0692aba78cee7d1405f4 (diff) |
started adding links to org detail pages
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/templates/caf/applicablesystem_list.html | 2 | ||||
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 45 |
2 files changed, 4 insertions, 43 deletions
diff --git a/ctrack/caf/templates/caf/applicablesystem_list.html b/ctrack/caf/templates/caf/applicablesystem_list.html index f8d6195..a2e7c43 100644 --- a/ctrack/caf/templates/caf/applicablesystem_list.html +++ b/ctrack/caf/templates/caf/applicablesystem_list.html @@ -24,7 +24,7 @@ </thead> {% for sys in object_list %} <tr> - <td>{{ sys.organisation.name }}</td> + <td><a href="{% url "organisations:detail" slug=sys.organisation.slug %}">{{ sys.organisation.name }}</a></td> <td>{{ sys.name }}</td> <td>{{ sys.caf }}</td> <td>{{ sys.organisation.submode.descriptor }}</td> diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index 5302ef4..d28723f 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -1,50 +1,11 @@ {% extends "base.html" %} {% block content %} - <h2>Organisation detail</h2> <div class="container"> <div class="row"> - {% if n_addr > 1 %} - {% for a in addr %} - <div class="col-md-6"> - <div class="card" style="width: 18rem;"> - <div class="card-body"> - <h5 class="card-title">{{ object.name }}</h5> - <h6 class="card-subtitle mb-2 text-muted">{{ a.type }}</h6> - <p class="card-text"> - {{ a.line1 }}<br> - {{ a.line2 }}<br> - {{ a.line3 }}<br> - {{ a.city }}<br> - {{ a.county }}<br> - {{ a.country}}<br> - </p> - <p><strong>{{ a.other_details }}</strong><br></p> - <a href="#" class="card-link">Edit Details</a> - </div> - </div> - </div> - {% endfor %} - {% else %} - <div class="col-md-12"> - <div class="card" style="width: 18rem;"> - <div class="card-body"> - <h5 class="card-title">{{ object.name }}</h5> - <h6 class="card-subtitle mb-2 text-muted">{{ addr.type }}</h6> - <p class="card-text"> - {{ addr.line1 }}<br> - {{ addr.line2 }}<br> - {{ addr.line3 }}<br> - {{ addr.city }}<br> - {{ addr.county }}<br> - {{ addr.country}}<br> - </p> - <p><strong>{{ addr.other_details }}</strong><br></p> - <a href="#" class="card-link">Edit Details</a> - </div> - </div> - </div> - {% endif %} + <h2>{{ object.name }}</h2> </div> + <div class="row"> + <p>{{ object.submode }}</p> </div> {% endblock %} |