diff options
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 16 | ||||
-rw-r--r-- | ctrack/organisations/views.py | 2 |
2 files changed, 11 insertions, 7 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index 8f85d84..51bc495 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -57,18 +57,20 @@ <div class="col-sm-6 p-2"> <div class="card bg-light"> <div class="card-body"> - <div class="card-title text-muted mb-1">CAF summary</div> + <div class="card-title text-muted mb-1">System/CAF summary</div> <div class="card-text"> <div class="table-responsive"> <table class="table"> + {% for ass in applicable_systems %} <tr> - <td>Blah:</td> - <td>BLACH</td> - </tr> - <tr> - <td>Blah:</td> - <td>BLACH</td> + <td>{{ ass.name }}</td> + <td>{{ ass.description }} + <a href="#"> + <p class="small">{{ ass.caf }}</p> + </a> + </td> </tr> + {% endfor %} </table> </div> </div> diff --git a/ctrack/organisations/views.py b/ctrack/organisations/views.py index f3957e7..b085e3b 100644 --- a/ctrack/organisations/views.py +++ b/ctrack/organisations/views.py @@ -24,4 +24,6 @@ class OrganisationDetailView(LoginRequiredMixin, DetailView): context['addr'] = addr people = org.person_set.all() context['people'] = people + applicable_systems = org.applicablesystem_set.all() + context['applicable_systems'] = applicable_systems return context |