aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ctrack/caf/templates')
-rw-r--r--ctrack/caf/templates/caf/applicablesystem_detail.html39
-rw-r--r--ctrack/caf/templates/caf/caf_detail.html2
2 files changed, 24 insertions, 17 deletions
diff --git a/ctrack/caf/templates/caf/applicablesystem_detail.html b/ctrack/caf/templates/caf/applicablesystem_detail.html
index 9e12043..b8467b0 100644
--- a/ctrack/caf/templates/caf/applicablesystem_detail.html
+++ b/ctrack/caf/templates/caf/applicablesystem_detail.html
@@ -5,24 +5,31 @@
{% block title %}{{ object.name }}{% endblock %}
{% block content %}
- <div class="container mt-3">
- <div class="row">
- <div class="col-sm-12 pl-0 my-2">
+ <div class="container mt-3">
<div class="row">
- <h4>{{ object.name }}</h4>
+ <div class="col-sm-12 pl-0 my-2">
+ <div class="row">
+ <h4>{{ object.name }}</h4>
+ </div>
+ <div class="row">
+ <h5>{{ object.caf.organisation }}</h5>
+ </div>
+ <div class="row">
+ <h5>Function</h5>
+ </div>
+ <div class="row">
+ <p>{{ object.function }}</p>
+ <p>Supports Essential Services:</p>
+ </div>
+ <div class="row">
+ <ul>
+ {% for s in object.essentialservice_set.all %}
+ <li>{{ s.name }}</li>
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
</div>
- <div class="row">
- <h5>{{ object.caf.organisation }}</h5>
- </div>
- <div class="row">
- <h6>Function</h6>
- </div>
- <div class="row">
- <p>{{ object.function }}</p>
- <p>Contained within CAF: <a href="{% url "caf:detail" object.caf.pk %}">{{ object.caf }}</a></p>
- </div>
- </div>
</div>
- </div>
{% endblock %}
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html
index fc2fcfd..fdd939e 100644
--- a/ctrack/caf/templates/caf/caf_detail.html
+++ b/ctrack/caf/templates/caf/caf_detail.html
@@ -72,7 +72,7 @@
<tr>
<td><a href="{% url "caf:ass_detail" system.id %}">{{ system.name }}</a></td>
<td>{{ system.function }}<br>
- <a href="{% url "caf:detail" system.caf.pk %}" class="small">
+ <a href="{% url "caf:detail" system.pk %}" class="small">
{{ system.caf }}
</a> <span class="text-muted"> | <a href="#" class="small">Edit System</a></span>
</td>