mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 07:02:22 +00:00
Better jury autocomplete
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
parent
7f7ac5d5e6
commit
50d8bc2aed
@ -69,16 +69,19 @@
|
|||||||
const optionEmail = document.createElement('option')
|
const optionEmail = document.createElement('option')
|
||||||
optionEmail.value = jury.email
|
optionEmail.value = jury.email
|
||||||
optionEmail.setAttribute('data-id', jury.id)
|
optionEmail.setAttribute('data-id', jury.id)
|
||||||
|
optionEmail.text = `${jury.first_name} ${jury.last_name} (${jury.email})`
|
||||||
juriesEmailList.appendChild(optionEmail)
|
juriesEmailList.appendChild(optionEmail)
|
||||||
|
|
||||||
const optionFirstName = document.createElement('option')
|
const optionFirstName = document.createElement('option')
|
||||||
optionFirstName.value = jury.first_name
|
optionFirstName.value = jury.first_name
|
||||||
optionFirstName.setAttribute('data-id', jury.id)
|
optionFirstName.setAttribute('data-id', jury.id)
|
||||||
|
optionFirstName.text = `${jury.first_name} ${jury.last_name} (${jury.email})`
|
||||||
juriesFirstNameList.appendChild(optionFirstName)
|
juriesFirstNameList.appendChild(optionFirstName)
|
||||||
|
|
||||||
const optionLastName = document.createElement('option')
|
const optionLastName = document.createElement('option')
|
||||||
optionLastName.value = jury.last_name
|
optionLastName.value = jury.last_name
|
||||||
optionLastName.setAttribute('data-id', jury.id)
|
optionLastName.setAttribute('data-id', jury.id)
|
||||||
|
optionLastName.text = `${jury.first_name} ${jury.last_name} (${jury.email})`
|
||||||
juriesLastNameList.appendChild(optionLastName)
|
juriesLastNameList.appendChild(optionLastName)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user