From 50d8bc2aed08c3f5558dbb26471fc023e89fd79b Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sun, 24 Mar 2024 10:33:42 +0100 Subject: [PATCH] Better jury autocomplete Signed-off-by: Emmy D'Anello --- participation/templates/participation/pool_jury.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/participation/templates/participation/pool_jury.html b/participation/templates/participation/pool_jury.html index 30afc63..61d75ce 100644 --- a/participation/templates/participation/pool_jury.html +++ b/participation/templates/participation/pool_jury.html @@ -69,16 +69,19 @@ const optionEmail = document.createElement('option') optionEmail.value = jury.email optionEmail.setAttribute('data-id', jury.id) + optionEmail.text = `${jury.first_name} ${jury.last_name} (${jury.email})` juriesEmailList.appendChild(optionEmail) const optionFirstName = document.createElement('option') optionFirstName.value = jury.first_name optionFirstName.setAttribute('data-id', jury.id) + optionFirstName.text = `${jury.first_name} ${jury.last_name} (${jury.email})` juriesFirstNameList.appendChild(optionFirstName) const optionLastName = document.createElement('option') optionLastName.value = jury.last_name optionLastName.setAttribute('data-id', jury.id) + optionLastName.text = `${jury.first_name} ${jury.last_name} (${jury.email})` juriesLastNameList.appendChild(optionLastName) }) })