diff options
-rw-r--r-- | ctrack/caf/templates/caf/caf_detail.html | 14 | ||||
-rw-r--r-- | ctrack/static/css/project.css | 12 | ||||
-rw-r--r-- | ctrack/static/css/project.css.map | 2 | ||||
-rw-r--r-- | ctrack/static/sass/project.scss | 16 |
4 files changed, 36 insertions, 8 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 %} diff --git a/ctrack/static/css/project.css b/ctrack/static/css/project.css index 33c1c4f..fe3d2d4 100644 --- a/ctrack/static/css/project.css +++ b/ctrack/static/css/project.css @@ -28,6 +28,18 @@ line-height: 15px; min-height: 10px; } +#partially-achieved-cell { + background-color: #f79400; + color: white; } + +#achieved-cell { + background-color: green; + color: white; } + +#not-achieved-cell { + background-color: red; + color: white; } + .textinput { background-color: lightgoldenrodyellow; box-shadow: 2px 10px 15px lightgray; diff --git a/ctrack/static/css/project.css.map b/ctrack/static/css/project.css.map index 195b0fa..a591f8a 100644 --- a/ctrack/static/css/project.css.map +++ b/ctrack/static/css/project.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AA2BA,YAAa;EACX,gBAAgB,EAhBV,IAAI;EAiBV,YAAY,EAhBD,OAAO;EAiBlB,KAAK,EAhBC,IAAI;;AAmBZ,YAAa;EACX,gBAAgB,EAnBX,OAAO;EAoBZ,YAAY,EAnBF,OAAO;EAoBjB,KAAK,EAnBD,OAAO;;AAsBb,SAAU;EACR,gBAAgB,EAAE,KAAK;;AAGzB,UAAW;EACT,gBAAgB,EAAE,GAAG;EACrB,YAAY,EAAE,MAAM;;AAStB,OAAQ;EACN,MAAM,EAAE,sBAAsB;EAC9B,aAAa,EAAE,IAAI;EACnB,UAAU,EAAE,uBAAuB;;AAGrC,eAAgB;EACd,UAAU,EAAE,MAAM;;AAGpB,YAAa;EACX,SAAS,EAAE,OAAO;EAClB,WAAW,EAAE,IAAI;EACjB,UAAU,EAAE,IAAI;;AAGlB,UAAW;EACT,gBAAgB,EAAE,oBAAoB;EACtC,UAAU,EAAE,uBAAuB;EACnC,MAAM,EAvDO,IAAI;;AA0DnB,OAAQ;EACN,KAAK,EAAE,SAAS", +"mappings": "AA2BA,YAAa;EACX,gBAAgB,EAhBV,IAAI;EAiBV,YAAY,EAhBD,OAAO;EAiBlB,KAAK,EAhBC,IAAI;;AAmBZ,YAAa;EACX,gBAAgB,EAnBX,OAAO;EAoBZ,YAAY,EAnBF,OAAO;EAoBjB,KAAK,EAnBD,OAAO;;AAsBb,SAAU;EACR,gBAAgB,EAAE,KAAK;;AAGzB,UAAW;EACT,gBAAgB,EAAE,GAAG;EACrB,YAAY,EAAE,MAAM;;AAStB,OAAQ;EACN,MAAM,EAAE,sBAAsB;EAC9B,aAAa,EAAE,IAAI;EACnB,UAAU,EAAE,uBAAuB;;AAGrC,eAAgB;EACd,UAAU,EAAE,MAAM;;AAGpB,YAAa;EACX,SAAS,EAAE,OAAO;EAClB,WAAW,EAAE,IAAI;EACjB,UAAU,EAAE,IAAI;;AAIlB,wBAAyB;EACvB,gBAAgB,EAAE,OAAgB;EAClC,KAAK,EAAE,KAAK;;AAGd,cAAe;EACb,gBAAgB,EAAE,KAAK;EACvB,KAAK,EAAE,KAAK;;AAGd,kBAAmB;EACjB,gBAAgB,EAAE,GAAG;EACrB,KAAK,EAAE,KAAK;;AAGd,UAAW;EACT,gBAAgB,EAAE,oBAAoB;EACtC,UAAU,EAAE,uBAAuB;EACnC,MAAM,EAvEO,IAAI;;AA0EnB,OAAQ;EACN,KAAK,EAAE,SAAS", "sources": ["../sass/project.scss"], "names": [], "file": "project.css" diff --git a/ctrack/static/sass/project.scss b/ctrack/static/sass/project.scss index 3370ee8..d02b73d 100644 --- a/ctrack/static/sass/project.scss +++ b/ctrack/static/sass/project.scss @@ -68,6 +68,22 @@ $input-height: 49px; min-height: 10px; } + +#partially-achieved-cell { + background-color: rgb(247, 148, 0); + color: white; +} + +#achieved-cell { + background-color: green; + color: white; +} + +#not-achieved-cell { + background-color: red; + color: white; +} + .textinput { background-color: lightgoldenrodyellow; box-shadow: 2px 10px 15px lightgray; |