diff options
author | MrArmonius <mrarmonius@gmail.com> | 2021-07-26 23:01:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-08-16 12:54:08 +0200 |
commit | 815e9bfe2a912f0804de4882a11fd349b2f4d796 (patch) | |
tree | 0e9abbaef84d8ef900f217984808821c8234c817 /static | |
parent | cf4918e901da8f2c388eebd33a500bf737943685 (diff) | |
download | guichet-815e9bfe2a912f0804de4882a11fd349b2f4d796.tar.gz guichet-815e9bfe2a912f0804de4882a11fd349b2f4d796.zip |
Add Description and visibility attributes
Modify in profil's page your description and your choice about show you
on the directory. The default visibility's choice is false. Tthe
description is empty by default.
In the directory, a new row exist to show the description.
Adapt view in column Description
I use the style `word-break: break-all;` on the `<td>`
Diffstat (limited to 'static')
-rw-r--r-- | static/javascript/search.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/javascript/search.js b/static/javascript/search.js index 7675c0e..9e078be 100644 --- a/static/javascript/search.js +++ b/static/javascript/search.js @@ -23,9 +23,13 @@ function searchDirectory() { var identifiant = row.insertCell(0); var name = row.insertCell(1); var email = row.insertCell(2); + var description = row.insertCell(3); + description.setAttribute("style", "word-break: break-all;"); + identifiant.innerHTML = `<a href="/admin/ldap/${jsonResponse.search[i].dn}">${jsonResponse.search[i].identifiant}</a>` name.innerHTML = jsonResponse.search[i].name email.innerHTML = jsonResponse.search[i].email + description.innerHTML = `${jsonResponse.search[i].description}` } old_table.parentNode.replaceChild(table, old_table) |