diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-08-28 12:20:44 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-08-28 12:20:44 +0100 |
commit | 9e9f4b37c3efd969d6d9f73dad19b78e4c62d134 (patch) | |
tree | f5afc81dc99e098a70aeddaceb6282bf9860ceff /ctrack | |
parent | d004475e5bde2aae4b69496a481f68b0da6b501a (diff) |
started adding new content to org detail page - ess service
Diffstat (limited to 'ctrack')
-rw-r--r-- | ctrack/caf/templates/caf/applicablesystem_detail.html | 39 | ||||
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 27 |
2 files changed, 50 insertions, 16 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/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index 9ece192..ac73c20 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -95,6 +95,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"> |