window: ldap: add tooltips for firstname, lastname and email attributes

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2024-01-12 17:16:08 +01:00 committed by Thomas Lamprecht
parent 4aff870f6c
commit da210b58a7

View 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',