From 7a4cf3627d2f72d51a0bcc28f7fdb8f0e560a353 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 15 Dec 2025 11:21:44 +0000 Subject: [PATCH] Refactor CID users display: enhance layout with card structure, add sorting functionality, and improve toggle button interactions --- generic/templates/generic/exam_cids_edit.html | 199 ++++++++++++------ 1 file changed, 129 insertions(+), 70 deletions(-) diff --git a/generic/templates/generic/exam_cids_edit.html b/generic/templates/generic/exam_cids_edit.html index 00b8c326..2e2527b4 100644 --- a/generic/templates/generic/exam_cids_edit.html +++ b/generic/templates/generic/exam_cids_edit.html @@ -1,97 +1,156 @@ {% include "generic/exam_candidate_headers.html" %} -

CID Users

-{% if groups %} - Users from the following groups are available: {% for group in groups %}{{group}}, {% endfor %} . -{% else %} - This exam is not associated with any user groups. Edit and add a group to enable user management. -{% endif %} -
    - {% for cid in current_cid_users %} -
  1. {{cid.cid}} [{{cid.passcode}}] {{cid.name}} / - Email: {{cid.email}} -
  2. +
    +
    +
    +
    +
    CID Users
    + {% if groups %} +
    Users from the following groups are available: + {% for group in groups %} + {{group}} + {% endfor %} +
    + {% else %} +
    This exam is not associated with any user groups. Edit and add a group to enable user management.
    + {% endif %} +
    +
    + {% if current_cid_users or available_cid_users %} + + {% endif %} + + +
    +
    - {% endfor %} - {% for cid in available_cid_users %} +
    +
    Sort by:
    +
    + + + +
    +
    -
  3. {{cid.cid}} [{{cid.passcode}}] {{cid.name}} / - Email: {{cid.email}} -
  4. - - {% endfor %} -
- -{% comment %} Hide the toggle button if there are no users (to add or remove) {% endcomment %} -

{% if current_cid_users or available_cid_users %} - -{% endif %} - - - -

+ + + - \ No newline at end of file