diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-04-06 16:00:45 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-04-06 16:00:45 +0100 |
commit | 9aa9150d3d02c67929d0ba64a4e2f54c64a69892 (patch) | |
tree | 9d907301335e86f2be243d1eab104f628cd5f3f1 /ctrack/caf | |
parent | 9b41e7bb507e68b847b506999a73fc906844bb06 (diff) |
added organisation link to caf detail page
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/templates/caf/caf_detail.html | 4 | ||||
-rw-r--r-- | ctrack/caf/views.py | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html index 0b9dee4..f485a33 100644 --- a/ctrack/caf/templates/caf/caf_detail.html +++ b/ctrack/caf/templates/caf/caf_detail.html @@ -24,6 +24,10 @@ <div class="table-responsive"> <table class="table"> <tr> + <td><strong>Organisation</strong></td> + <td><a href="{% url 'organisations:detail' object.pk %}">{{ organisation }}</a></td> + </tr> + <tr> <td><strong>Quality Grading:</strong></td> <td>{{ object.quality_grading }}</td> </tr> diff --git a/ctrack/caf/views.py b/ctrack/caf/views.py index 153d49c..2ed969a 100644 --- a/ctrack/caf/views.py +++ b/ctrack/caf/views.py @@ -38,7 +38,8 @@ def caf_detail_view(request, pk): _scrs.append(lst_scores) context = { 'object': caf, - 'assessments_and_scores': _scrs + 'assessments_and_scores': _scrs, + 'organisation': ApplicableSystem.objects.filter(caf=caf).first().organisation } return render(request, 'caf/caf_detail.html', context) |