]> git.proxmox.com Git - proxmox-widget-toolkit.git/blobdiff - src/window/AuthEditLDAP.js
window: ldap: add tooltips for firstname, lastname and email attributes
[proxmox-widget-toolkit.git] / 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',