aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf/templates
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-04-06 17:00:19 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-04-06 17:00:19 +0100
commit1b58c78fbc51de5ddfe8935f3e784d01a82c2bcb (patch)
tree3557f2761995f726bc48c9b91c8bc3b589991563 /ctrack/caf/templates
parent9aa9150d3d02c67929d0ba64a4e2f54c64a69892 (diff)
caf assessment scores now coloured on caf detail page
Diffstat (limited to '')
-rw-r--r--ctrack/caf/templates/caf/caf_detail.html24
1 files changed, 23 insertions, 1 deletions
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html
index f485a33..398abf4 100644
--- a/ctrack/caf/templates/caf/caf_detail.html
+++ b/ctrack/caf/templates/caf/caf_detail.html
@@ -87,12 +87,34 @@
</tr>
</table>
<table class="table">
+ <tr>
+ <th>Designation</th>
+ <th>Title</th>
+ <th>Outcome description</th>
+ <th>Assessment</th>
+ <th>Baseline</th>
+ </tr>
{% for score in ass.1 %}
<tr>
<td>{{ score.caf_contributing_outcome.designation }}</td>
<td>{{ score.caf_contributing_outcome.name }}</td>
<td>{{ score.caf_contributing_outcome.description }}</td>
- <td>{{ score.assessment_score }}</td>
+
+ {% if score.assessment_score == "Achieved" %}
+ <td class="text-success">{{ score.assessment_score }}</td>
+ {% elif score.assessment_score == "Partially Achieved" %}
+ <td class="text-warning">{{ score.assessment_score }}</td>
+ {% else %}
+ <td class="text-danger">{{ score.assessment_score }}</td>
+ {% endif %}
+
+ {% if score.baseline_assessment_score == "Achieved" %}
+ <td class="text-success">{{ score.baseline_assessment_score }}</td>
+ {% elif score.baseline_assessment_score == "Partially Achieved" %}
+ <td class="text-warning">{{ score.baseline_assessment_score }}</td>
+ {% else %}
+ <td class="text-danger">{{ score.baseline_assessment_score }}</td>
+ {% endif %}
</tr>
{% endfor %}
</table>