aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-04-14 13:22:19 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-04-14 13:22:19 +0100
commit4bd66229c1c778d63f206d9b0c221daa1e37c081 (patch)
tree42a63a279a854a51cd8acd001a25ba0aeb04ddb6
parentb607a6d1ec1ea0f4c2b63bf4b2cda69579ff345e (diff)
ridding ourselves of whitespace
Diffstat (limited to '')
-rw-r--r--ctrack/caf/templates/caf/caf_detail.html95
1 files changed, 46 insertions, 49 deletions
diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html
index 2e3295d..98679b3 100644
--- a/ctrack/caf/templates/caf/caf_detail.html
+++ b/ctrack/caf/templates/caf/caf_detail.html
@@ -4,7 +4,7 @@
{% block title %}CAF Detail{% endblock %}
{% block content %}
- <div class="container">
+<div class="container">
<div class="row">
<h2>{{ object }}</h2>
@@ -76,52 +76,52 @@
<div class="table-responsive">
<table class="table">
{% for ass in assessments_and_scores %}
- <table class="table-responsive p-2">
- <tr>
- <td><strong>Assessment:</strong></td>
- <td>{{ ass.0 }}</td>
- </tr>
- <tr>
- <td><strong>Assessor:</strong></td>
- <td>{{ ass.0.completer }}</td>
- </tr>
- <tr>
- <td><strong>Comments:</strong></td>
- <td>{{ ass.0.comments }}</td>
- </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>
+ <table class="table-responsive p-2">
+ <tr>
+ <td><strong>Assessment:</strong></td>
+ <td>{{ ass.0 }}</td>
+ </tr>
+ <tr>
+ <td><strong>Assessor:</strong></td>
+ <td>{{ ass.0.completer }}</td>
+ </tr>
+ <tr>
+ <td><strong>Comments:</strong></td>
+ <td>{{ ass.0.comments }}</td>
+ </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>
- {% 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.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>
+ {% 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>
{% endfor %}
</table>
</div>
@@ -131,7 +131,4 @@
</div>
</div>
-{% endblock %}
-
-
-
+ {% endblock %} \ No newline at end of file