From: Christoph Heiss Date: Fri, 12 Jan 2024 16:16:08 +0000 (+0100) Subject: window: ldap: add tooltips for firstname, lastname and email attributes X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=da210b58a7d26944fa28928217f0899c42ebd379;hp=4aff870f6c386c70978bde07564a1a7a69eac3ab;p=proxmox-widget-toolkit.git window: ldap: add tooltips for firstname, lastname and email attributes Signed-off-by: Christoph Heiss --- diff --git a/src/window/AuthEditLDAP.js b/src/window/AuthEditLDAP.js index 105fd19..da83520 100644 --- a/src/window/AuthEditLDAP.js +++ b/src/window/AuthEditLDAP.js @@ -314,16 +314,30 @@ Ext.define('Proxmox.panel.LDAPSyncInputPanel', { xtype: 'proxmoxtextfield', name: 'firstname', fieldLabel: gettext('First Name attribute'), + autoEl: { + tag: 'div', + 'data-qtip': Ext.String.format(gettext('Often called {0}'), '`givenName`'), + }, }, { xtype: 'proxmoxtextfield', name: 'lastname', fieldLabel: gettext('Last Name attribute'), + autoEl: { + tag: 'div', + 'data-qtip': Ext.String.format(gettext('Often called {0}'), '`sn`'), + }, }, { xtype: 'proxmoxtextfield', name: 'email', fieldLabel: gettext('E-Mail attribute'), + autoEl: { + tag: 'div', + 'data-qtip': get => get('isAd') + ? Ext.String.format(gettext('Often called {0} or {1}'), '`userPrincipalName`', '`mail`') + : Ext.String.format(gettext('Often called {0}'), '`mail`'), + }, }, { xtype: 'displayfield',