]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
window: ldap: add tooltips for firstname, lastname and email attributes
authorChristoph Heiss <c.heiss@proxmox.com>
Fri, 12 Jan 2024 16:16:08 +0000 (17:16 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 25 Mar 2024 16:15:24 +0000 (17:15 +0100)
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
src/window/AuthEditLDAP.js

index 105fd1901b9f893fb150fc6f2b38b74aaf53ef57..da83520eb8c560a9a699b73c1ad731941cd6e4b1 100644 (file)
@@ -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',