diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-08-28 12:22:05 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-08-28 12:22:05 +0100 |
commit | 055b50d7675505d60c0faa8bea900c9e553b7f2b (patch) | |
tree | c266fa8f6ec4aa2134b9d4a200edc3c5858e424a /ctrack | |
parent | 9e9f4b37c3efd969d6d9f73dad19b78e4c62d134 (diff) |
reordered cards
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 36 |
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"> |