]>
git.proxmox.com Git - pmg-gui.git/blob - js/LDAPUserEditor.js
1 Ext
.define('PMG.LDAPUserInputPanel', {
2 extend
: 'Proxmox.panel.InputPanel',
3 alias
: 'widget.pmgLDAPUserInputPanel',
5 setValues: function(values
) {
8 if (values
.profile
!== undefined) {
9 var accountField
= this.lookupReference('accountField');
10 accountField
.setProfile(values
.profile
);
13 me
.callParent([values
]);
18 xclass
: 'Ext.app.ViewController',
20 changeProfile: function(f
, value
) {
21 var accountField
= this.lookupReference('accountField');
22 accountField
.setProfile(value
);
26 'field[name=profile]': {
27 change
: 'changeProfile'
34 xtype
: 'pmgLDAPProfileSelector',
36 reference
: 'profileField',
37 fieldLabel
: gettext("Profile")
40 xtype
: 'pmgLDAPUserSelector',
42 reference
: 'accountField',
43 fieldLabel
: gettext("Account")
48 Ext
.define('PMG.LDAPUserEditor', {
49 extend
: 'Proxmox.window.Edit',
50 alias
: 'widget.pmgLDAPUserEditor',
54 items
: { xtype
: 'pmgLDAPUserInputPanel' }