@@ -276,21 +276,21 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
276
276
< td class ="score border-bottom border-opacity-25 border-primary is--section-score ">
277
277
{% include 'caps/icons/scorecards-star.html' with classes='text-info align-text-bottom me-1' width='1.2em' height='1.2rem' role='presentation' %}
278
278
< 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 '-' -->
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
284
< 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 >
285
285
</ td >
286
286
{% else %}
287
287
< td class ="score border-bottom border-opacity-25 border-primary is--section-score ">
288
288
< span > {{section.weighted_score|floatformat:0 }}%</ span >
289
- <!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
290
- <!-- TODO: Change text-success to text-danger if variation is negative -->
291
- <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
292
- <!-- TODO: Change text-success to text-dark if there is no variation -->
293
- <!-- TODO: If there is no variation then display '-' -->
289
+ <!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
290
+ <!-- TODO: Change text-success to text-danger if comparison is negative -->
291
+ <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
292
+ <!-- TODO: Change text-success to text-dark if there is no comparison -->
293
+ <!-- TODO: If there is no comparison then display '-' -->
294
294
< 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 >
295
295
</ td >
296
296
{% endif %}
@@ -324,26 +324,36 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
324
324
</ td >
325
325
326
326
< td data-column ="score " class ="score border-bottom ">
327
- < span > {{ answer.score|format_mark }}/{{ answer.max }}</ span >
328
- <!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
329
- <!-- TODO: Change text-success to text-danger if comparison is negative -->
330
- <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
331
- <!-- TODO: Change text-success to text-dark if there is no comparison -->
332
- <!-- TODO: If there is no comparison then display '-' -->
333
- <!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
334
- < 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 >
327
+ < div class ="d-flex flex-row gap-3 justify-content-end align-items-center ">
328
+ < p class ="mb-0 ">
329
+ < span class ="fs-5 "> {{ answer.score|format_mark }} < span class ="fs-7 "> out of </ span > {{ answer.max }}
330
+ </ span >
331
+ </ p >
332
+ <!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
333
+ <!-- TODO: Change text-success to text-danger if comparison is negative -->
334
+ <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
335
+ <!-- TODO: Change text-success to text-dark if there is no comparison -->
336
+ <!-- TODO: If there is no comparison then display '-' -->
337
+ <!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
338
+ < 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 >
339
+ </ div >
335
340
</ td >
336
341
337
342
{% for comparison in answer.comparisons %}
338
343
< td data-column ="score " class ="d-none d-md-table-cell score border-bottom ">
339
- < span > {{ comparison.score|format_mark }}/{{ comparison.max }}</ span >
340
- <!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
341
- <!-- TODO: Change text-success to text-danger if comparison is negative -->
342
- <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
343
- <!-- TODO: Change text-success to text-dark if there is no comparison -->
344
- <!-- TODO: If there is no comparison then display '-' -->
345
- <!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
346
- < 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 >
344
+ < div class ="d-flex flex-row gap-3 justify-content-end align-items-center ">
345
+ < p class ="mb-0 ">
346
+ < span class ="fs-5 "> {{ comparison.score|format_mark }} < span class ="fs-7 "> out of </ span > {{ comparison.max }}
347
+ </ span >
348
+ </ p >
349
+ <!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
350
+ <!-- TODO: Change text-success to text-danger if comparison is negative -->
351
+ <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
352
+ <!-- TODO: Change text-success to text-dark if there is no comparison -->
353
+ <!-- TODO: If there is no comparison then display '-' -->
354
+ <!-- TODO: If question didn't exist in previous years then let's add 'NA' with bg-gray-100 text-dark -->
355
+ < 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 >
356
+ </ div >
347
357
</ td >
348
358
{% endfor %}
349
359
@@ -377,22 +387,22 @@ <h3 class="exclamation text-white">Visit us again on a bigger screen</h3>
377
387
</ td >
378
388
< td class ="score border-bottom border-opacity-25 border-primary is--section-score ">
379
389
{{ plan_score.weighted_total|floatformat:0 }}%
380
- <!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
381
- <!-- TODO: Change text-success to text-danger if variation is negative -->
382
- <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
383
- <!-- TODO: Change text-success to text-dark if there is no variation -->
384
- <!-- TODO: If there is no variation then display '-' -->
390
+ <!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
391
+ <!-- TODO: Change text-success to text-danger if comparison is negative -->
392
+ <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
393
+ <!-- TODO: Change text-success to text-dark if there is no comparison -->
394
+ <!-- TODO: If there is no comparison then display '-' -->
385
395
< 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 >
386
396
</ td >
387
397
388
398
{% for comparison in comparisons %}
389
399
< td class ="d-none d-md-table-cell score border-bottom border-opacity-25 border-primary is--section-score ">
390
400
{{ comparison.weighted_total|floatformat:0 }}%
391
- <!-- TODO: Change bg-green-100 to bg-red-100 if variation is negative -->
392
- <!-- TODO: Change text-success to text-danger if variation is negative -->
393
- <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no variation -->
394
- <!-- TODO: Change text-success to text-dark if there is no variation -->
395
- <!-- TODO: If there is no variation then display '-' -->
401
+ <!-- TODO: Change bg-green-100 to bg-red-100 if comparison is negative -->
402
+ <!-- TODO: Change text-success to text-danger if comparison is negative -->
403
+ <!-- TODO: Change bg-green-100 to bg-gray-100 if there is no comparison -->
404
+ <!-- TODO: Change text-success to text-dark if there is no comparison -->
405
+ <!-- TODO: If there is no comparison then display '-' -->
396
406
< 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 >
397
407
</ td >
398
408
{% endfor %}
0 commit comments