diff options
Diffstat (limited to 'ctrack')
-rw-r--r-- | ctrack/caf/templates/caf/caf_detail.html | 26 | ||||
-rw-r--r-- | ctrack/caf/views.py | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html index 98679b3..7bd4ebe 100644 --- a/ctrack/caf/templates/caf/caf_detail.html +++ b/ctrack/caf/templates/caf/caf_detail.html @@ -64,6 +64,32 @@ </div> <div class="row pt-3 text-info"> + <h4>Applicable Systems</h4> + </div> + + <div class="row"> + <div class="col-sm-12 p-2"> + <div class="card bg-light"> + <div class="card-body"> + <div class="card-title text-muted"></div> + <div class="card-text"> + <div> + <table class="table table-responsive"> + {% for system in systems %} + <tr> + <td><strong>{{ system.name }}</strong></td> + <td>{{ system.description }}</td> + </tr> + {% endfor %} + </table> + </div> + </div> + </div> + </div> + </div> + </div> + + <div class="row pt-3 text-info"> <h4>Assessments</h4> </div> diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index 2ed969a..6664928 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -39,7 +39,8 @@ def caf_detail_view(request, pk): context = { 'object': caf, 'assessments_and_scores': _scrs, - 'organisation': ApplicableSystem.objects.filter(caf=caf).first().organisation + 'organisation': ApplicableSystem.objects.filter(caf=caf).first().organisation, + 'systems': caf.applicable_systems.all() } return render(request, 'caf/caf_detail.html', context) |