Enhance candidate lists by restructuring HTML for improved readability and maintainability.

This commit is contained in:
Ross
2026-01-05 11:55:03 +00:00
parent 459b7f9b93
commit ba0c380f18
2 changed files with 46 additions and 46 deletions
@@ -1,6 +1,6 @@
{% comment %} Partial: list of CID candidates for HTMX swap {% endcomment %} {% comment %} Partial: list of CID candidates for HTMX swap {% endcomment %}
{% if cid_users %} {% if cid_users %}
<ul class="list-group list-group-flush"> <ul class="list-group list-group-flush">
{% for cid in cid_users %} {% for cid in cid_users %}
<li class="list-group-item"> <li class="list-group-item">
<div class="d-flex align-items-start justify-content-between"> <div class="d-flex align-items-start justify-content-between">
@@ -26,7 +26,7 @@
</div> </div>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
<p class="text-muted">This exam has no CID candidates.</p> <p class="text-muted">This exam has no CID candidates.</p>
{% endif %} {% endif %}
@@ -1,6 +1,6 @@
{% comment %} Partial: list of User candidates for HTMX swap {% endcomment %} {% comment %} Partial: list of User candidates for HTMX swap {% endcomment %}
{% if user_users %} {% if user_users %}
<ul class="list-group list-group-flush"> <ul class="list-group list-group-flush">
{% for user in user_users %} {% for user in user_users %}
<li class="list-group-item d-flex justify-content-between align-items-start"> <li class="list-group-item d-flex justify-content-between align-items-start">
<div> <div>
@@ -21,7 +21,7 @@
<div class="badge-container d-flex align-items-center ms-3"></div> <div class="badge-container d-flex align-items-center ms-3"></div>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
<p class="text-muted">This exam has no User candidates.</p> <p class="text-muted">This exam has no User candidates.</p>
{% endif %} {% endif %}