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')
|
||||
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)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue