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