diff options
-rw-r--r-- | ctrack/caf/templates/caf/caf_detail.html | 24 |
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> |