add option to view cid candidate name in scores page
This commit is contained in:
@@ -2047,6 +2047,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
user_ids = set()
|
||||
|
||||
cids_user_id_map = {}
|
||||
cids_name_map = {}
|
||||
|
||||
# Loop through all candidates
|
||||
for cid_user_answer in cid_user_answers:
|
||||
@@ -2791,6 +2792,17 @@ def candidate_email_results_resend(request, cid, resend=True):
|
||||
def create_cid_email(request):
|
||||
pass
|
||||
|
||||
@user_is_cid_user_manager
|
||||
def cid_details(request, cid: int):
|
||||
print(cid)
|
||||
if request.htmx:
|
||||
cid_user = get_object_or_404(CidUser, cid=cid)
|
||||
|
||||
print(cid_user.name)
|
||||
|
||||
return HttpResponse(f"{cid_user.name} ({cid_user.email})")
|
||||
|
||||
raise PermissionDenied() # or Http404
|
||||
|
||||
@user_is_cid_user_manager
|
||||
def manage_cid_users(request):
|
||||
|
||||
Reference in New Issue
Block a user