aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/caf
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-04-15 11:24:19 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-04-15 11:24:19 +0100
commitaa96b3e12cf4c1c146e9a5a5504051b0ef201275 (patch)
tree77e695a8f9a2d7537b565dab3fe51d975d2f6c8d /ctrack/caf
parentefb2e28fc07a57e7309fe67e051f580317be7493 (diff)
background colours in assessment score boxes
Diffstat (limited to '')
-rw-r--r--ctrack/caf/templates/caf/caf_detail.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html
index fcde571..730a5ab 100644
--- a/ctrack/caf/templates/caf/caf_detail.html
+++ b/ctrack/caf/templates/caf/caf_detail.html
@@ -117,7 +117,7 @@
</tr>
</table>
<br>
- <table class="table-sm table-bordered">
+ <table class="table-sm table-bordered" id="assessment-table">
<tr>
<th>Designation</th>
<th>Title</th>
@@ -132,19 +132,19 @@
<td>{{ score.caf_contributing_outcome.description }}</td>
{% if score.assessment_score == "Achieved" %}
- <td class="text-success">{{ score.assessment_score }}</td>
+ <td id="achieved-cell">{{ score.assessment_score }}</td>
{% elif score.assessment_score == "Partially Achieved" %}
- <td class="text-warning">{{ score.assessment_score }}</td>
+ <td id="partially-achieved-cell">{{ score.assessment_score }}</td>
{% else %}
- <td class="text-danger">{{ score.assessment_score }}</td>
+ <td id="not-achieved-cell">{{ score.assessment_score }}</td>
{% endif %}
{% if score.baseline_assessment_score == "Achieved" %}
- <td class="text-success">{{ score.baseline_assessment_score }}</td>
+ <td id="achieved-cell">{{ score.baseline_assessment_score }}</td>
{% elif score.baseline_assessment_score == "Partially Achieved" %}
- <td class="text-warning">{{ score.baseline_assessment_score }}</td>
+ <td id="partially-achieved-cell">{{ score.baseline_assessment_score }}</td>
{% else %}
- <td class="text-danger">{{ score.baseline_assessment_score }}</td>
+ <td id="not-achieved-cell">{{ score.baseline_assessment_score }}</td>
{% endif %}
</tr>
{% endfor %}