From da210b58a7d26944fa28928217f0899c42ebd379 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Fri, 12 Jan 2024 17:16:08 +0100 Subject: [PATCH 1/1] window: ldap: add tooltips for firstname, lastname and email attributes Signed-off-by: Christoph Heiss --- src/window/AuthEditLDAP.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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', -- 2.39.2