aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/organisations/templates
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-09-02 12:04:19 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-09-02 12:04:19 +0100
commitedd91cb77191b386af95dfaca0b2706c7ee143b9 (patch)
treeb94edf8e069911d0aea4e1acfc23a72a180cb2cf /ctrack/organisations/templates
parent15c89a78c097dc00ad7b8ca3314581ed3b058187 (diff)
parentc406d3da83d20d65c2fc4da7d5d4d5db0f6ad115 (diff)
Merge branch 'db_rewrite' into master
Diffstat (limited to 'ctrack/organisations/templates')
-rw-r--r--ctrack/organisations/templates/organisations/organisation_detail.html43
1 files changed, 31 insertions, 12 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html
index 8c9ac3b..a86adf1 100644
--- a/ctrack/organisations/templates/organisations/organisation_detail.html
+++ b/ctrack/organisations/templates/organisations/organisation_detail.html
@@ -65,6 +65,33 @@
</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">Essential Services</div>
+ <div class="table table-responsive">
+ <table class="table">
+ {% if applicable_systems|length > 0 %}
+ {% for es in essential_services %}
+ <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>
+ </tr>
+ {% endfor %}
+ {% else %}
+ <p>button to create new one here</p>
+ {% endif %}
+ </table>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
<div class="row">
<div class="col-md-12 my-2">
<div class="card bg-light">
@@ -79,7 +106,7 @@
<tr>
<td><a href="{% url "caf:ass_detail" ass.id %}">{{ ass.name }}</a></td>
<td>{{ ass.function }}<br>
- <a href="{% url "caf:detail" ass.caf.pk %}" class="small">
+ <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>
@@ -95,21 +122,13 @@
</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">OES Engagements<a href="{% url "register:create" %}" class="btn btn-primary btn-sm float-right">Add
- new...</a></div>
- <div class="table table-responsive">
- <table class="table">
- {% if engagement_events|length > 0 %}
- {% for event in engagement_events %}
- <tr>
- <td><a href="#">{{ event.type}}</a></td>
- <td>{{ event.short_description }}</td>
- </tr>
- {% endfor %}
+ <div class="card-title">OES Engagements<a href="{% url "register:create" %}" class="btn btn-primary btn-sm float-right">Add new...</a></div> <div class="table table-responsive"> <table class="table"> {% if engagement_events|length > 0 %} {% for event in engagement_events %} <tr> <td><a href="#">{{ event.type}}</a></td> <td>{{ event.short_description }}</td> </tr> {% endfor %}
{% else %}
<a class="btn btn-primary" href="{% url "register:create" %}" role="button">Add
new...</a>