Skip to content

Commit bb6a6ea

Browse files
committed
fixup! [Scorecards] Added year variation placeholders in council table
1 parent d6dcced commit bb6a6ea

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

scoring/templates/scoring/council.html

+49-49
Original file line numberDiff line numberDiff line change
@@ -276,38 +276,38 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
276276
<td class="score border-bottom border-opacity-25 border-primary is--section-score">
277277
{% include 'caps/icons/scorecards-star.html' with classes='text-info align-text-bottom me-1' width='1.2em' height='1.2rem' role='presentation' %}
278278
<span>{{ section.weighted_score|floatformat:0 }}%</span>
279-
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
280-
<!-- TODO: Change text-success to text-danger if variation is negative -->
281-
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
282-
<!-- TODO: Change text-success to text-dark if there is no variation -->
283-
<!-- TODO: If there is no variation then display '-' -->
284-
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
285-
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
279+
<!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
280+
<!-- TODO: Change text-success to text-danger if comparison is negative -->
281+
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
282+
<!-- TODO: Change text-success to text-dark if there is no comparison -->
283+
<!-- TODO: If there is no comparison then display '-' -->
284+
<!-- TODO Designer: Add tooltip to badge explaining this is a comparison -->
285+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comparison with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
286286
</td>
287287
{% else %}
288288
<td class="score border-bottom border-opacity-25 border-primary is--section-score">
289289
<span>{{section.weighted_score|floatformat:0 }}%</span>
290-
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
291-
<!-- TODO: Change text-success to text-danger if variation is negative -->
292-
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
293-
<!-- TODO: Change text-success to text-dark if there is no variation -->
294-
<!-- TODO: If there is no variation then display '-' -->
295-
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
296-
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
290+
<!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
291+
<!-- TODO: Change text-success to text-danger if comparison is negative -->
292+
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
293+
<!-- TODO: Change text-success to text-dark if there is no comparison -->
294+
<!-- TODO: If there is no comparison then display '-' -->
295+
<!-- TODO Designer: Add tooltip to badge explaining this is a comparison -->
296+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comparison with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
297297
</td>
298298
{% endif %}
299299

300300
{% for comparison in section.comparisons %}
301301
<td class="d-none d-md-table-cell score border-bottom border-opacity-25 border-primary is--section-score {% if comparison.top_performer %}top-performer{% endif %}">
302302
{{ comparison.weighted_score|floatformat:0 }}%
303-
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
304-
<!-- TODO: Change text-success to text-danger if variation is negative -->
305-
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
306-
<!-- TODO: Change text-success to text-dark if there is no variation -->
307-
<!-- TODO: If there is no variation then display '-' -->
303+
<!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
304+
<!-- TODO: Change text-success to text-danger if comparison is negative -->
305+
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
306+
<!-- TODO: Change text-success to text-dark if there is no comparison -->
307+
<!-- TODO: If there is no comparison then display '-' -->
308308
<!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
309-
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
310-
<button button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
309+
<!-- TODO Designer: Add tooltip to badge explaining this is a comparison -->
310+
<button button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comparison with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
311311
</td>
312312
{% endfor %}
313313

@@ -333,14 +333,14 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
333333
</span>
334334
</p>
335335

336-
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
337-
<!-- TODO: Change text-success to text-danger if variation is negative -->
338-
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
339-
<!-- TODO: Change text-success to text-dark if there is no variation -->
340-
<!-- TODO: If there is no variation then display '-' -->
336+
<!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
337+
<!-- TODO: Change text-success to text-danger if comparison is negative -->
338+
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
339+
<!-- TODO: Change text-success to text-dark if there is no comparison -->
340+
<!-- TODO: If there is no comparison then display '-' -->
341341
<!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
342-
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
343-
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+1</button>
342+
<!-- TODO Designer: Add tooltip to badge explaining this is a comparison -->
343+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comparison with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+1</button>
344344
</div>
345345
</td>
346346

@@ -351,14 +351,14 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
351351
<span class="fs-5">{{ comparison.score|format_mark }} <span class="fs-7">out of </span> {{ comparison.max }}
352352
</span>
353353
</p>
354-
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
355-
<!-- TODO: Change text-success to text-danger if variation is negative -->
356-
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
357-
<!-- TODO: Change text-success to text-dark if there is no variation -->
358-
<!-- TODO: If there is no variation then display '-' -->
354+
<!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
355+
<!-- TODO: Change text-success to text-danger if comparison is negative -->
356+
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
357+
<!-- TODO: Change text-success to text-dark if there is no comparison -->
358+
<!-- TODO: If there is no comparison then display '-' -->
359359
<!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
360-
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
361-
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+1</button>
360+
<!-- TODO Designer: Add tooltip to badge explaining this is a comparison -->
361+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comparison with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+1</button>
362362
</div>
363363
</td>
364364
{% endfor %}
@@ -393,25 +393,25 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
393393
</td>
394394
<td class="score border-bottom border-opacity-25 border-primary is--section-score">
395395
{{ plan_score.weighted_total|floatformat:0 }}%
396-
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
397-
<!-- TODO: Change text-success to text-danger if variation is negative -->
398-
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
399-
<!-- TODO: Change text-success to text-dark if there is no variation -->
400-
<!-- TODO: If there is no variation then display '-' -->
401-
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
402-
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
396+
<!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
397+
<!-- TODO: Change text-success to text-danger if comparison is negative -->
398+
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
399+
<!-- TODO: Change text-success to text-dark if there is no comparison -->
400+
<!-- TODO: If there is no comparison then display '-' -->
401+
<!-- TODO Designer: Add tooltip to badge explaining this is a comparison -->
402+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comparison with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
403403
</td>
404404

405405
{% for comparison in comparisons %}
406406
<td class="d-none d-md-table-cell score border-bottom border-opacity-25 border-primary is--section-score">
407407
{{ comparison.weighted_total|floatformat:0 }}%
408-
<!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
409-
<!-- TODO: Change text-success to text-danger if variation is negative -->
410-
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
411-
<!-- TODO: Change text-success to text-dark if there is no variation -->
412-
<!-- TODO: If there is no variation then display '-' -->
413-
<!-- TODO Designer: Add tooltip to badge explaining this is a variation -->
414-
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Variation with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
408+
<!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
409+
<!-- TODO: Change text-success to text-danger if comparison is negative -->
410+
<!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
411+
<!-- TODO: Change text-success to text-dark if there is no comparison -->
412+
<!-- TODO: If there is no comparison then display '-' -->
413+
<!-- TODO Designer: Add tooltip to badge explaining this is a comparison -->
414+
<button type="button" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Comparison with Action Scorecards 2023" class="badge small ms-2 mb-0 align-text-bottom bg-green-100 text-success border-0">+5%</button>
415415
</td>
416416
{% endfor %}
417417

0 commit comments

Comments
 (0)