aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ctrack/organisations/templates/organisations/organisation_detail.html36
1 files changed, 19 insertions, 17 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html
index ac73c20..a86adf1 100644
--- a/ctrack/organisations/templates/organisations/organisation_detail.html
+++ b/ctrack/organisations/templates/organisations/organisation_detail.html
@@ -65,29 +65,25 @@
</div>
</div>
</div>
+
<div class="row">
<div class="col-md-12 my-2">
<div class="card bg-light">
<div class="card-body">
- <div class="card-title">NIS Systems <a
- href="{% url "caf:as_create_from_org" object.slug %}" class="btn btn-primary btn-sm float-right">Add
- new...</a></div>
+ <div class="card-title">Essential Services</div>
<div class="table table-responsive">
<table class="table">
{% if applicable_systems|length > 0 %}
- {% for ass in applicable_systems %}
+ {% for es in essential_services %}
<tr>
- <td><a href="{% url "caf:ass_detail" ass.id %}">{{ ass.name }}</a></td>
- <td>{{ ass.function }}<br>
- <a href="{% url "caf:detail" ass.pk %}" class="small">
- {{ ass.caf }}
- </a> <span class="text-muted"> | <a href="#" class="small">Edit System</a></span>
+ <td style="width: 18%">{{ es.name }}</td>
+ <td>{{ es.description }}<br>
+ <span class="text-muted"> | <a href="#" class="small">Edit System</a></span>
</td>
</tr>
{% endfor %}
{% else %}
- <a class="btn btn-primary" href="{% url "caf:as_create_from_org" object.slug %}" role="button">Add
- new...</a>
+ <p>button to create new one here</p>
{% endif %}
</table>
</div>
@@ -100,20 +96,25 @@
<div class="col-md-12 my-2">
<div class="card bg-light">
<div class="card-body">
- <div class="card-title">Essential Services</div>
+ <div class="card-title">NIS Systems <a
+ href="{% url "caf:as_create_from_org" object.slug %}" class="btn btn-primary btn-sm float-right">Add
+ new...</a></div>
<div class="table table-responsive">
<table class="table">
{% if applicable_systems|length > 0 %}
- {% for es in essential_services %}
+ {% for ass in applicable_systems %}
<tr>
- <td style="width: 18%">{{ es.name }}</td>
- <td>{{ es.description }}<br>
- <span class="text-muted"> | <a href="#" class="small">Edit System</a></span>
+ <td><a href="{% url "caf:ass_detail" ass.id %}">{{ ass.name }}</a></td>
+ <td>{{ ass.function }}<br>
+ <a href="{% url "caf:detail" ass.pk %}" class="small">
+ {{ ass.caf }}
+ </a> <span class="text-muted"> | <a href="#" class="small">Edit System</a></span>
</td>
</tr>
{% endfor %}
{% else %}
- <p>button to create new one here</p>
+ <a class="btn btn-primary" href="{% url "caf:as_create_from_org" object.slug %}" role="button">Add
+ new...</a>
{% endif %}
</table>
</div>
@@ -122,6 +123,7 @@
</div>
</div>
+
<div class="row">
<div class="col-md-12 my-2">
<div class="card bg-light">