mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-09 15:01:21 +00:00
RoleSelector.js: widget to select user role
This commit is contained in:
parent
ec1dd829db
commit
c0ffdd0046
@ -1,6 +1,7 @@
|
|||||||
JSSRC= \
|
JSSRC= \
|
||||||
Utils.js \
|
Utils.js \
|
||||||
LoginWindow.js \
|
LoginWindow.js \
|
||||||
|
RoleSelector.js \
|
||||||
ServerStatus.js \
|
ServerStatus.js \
|
||||||
ServerAdministration.js \
|
ServerAdministration.js \
|
||||||
LDAPProfileSelector.js \
|
LDAPProfileSelector.js \
|
||||||
|
10
js/RoleSelector.js
Normal file
10
js/RoleSelector.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Ext.define('PMG.RoleSelector', {
|
||||||
|
extend: 'Proxmox.form.KVComboBox',
|
||||||
|
alias: 'widget.pmgRoleSelector',
|
||||||
|
|
||||||
|
comboItems: [
|
||||||
|
['admin', gettext('Administrator')],
|
||||||
|
['qmanager', gettext('Quarantine Manager')],
|
||||||
|
['audit', gettext('Auditor')]
|
||||||
|
]
|
||||||
|
});
|
@ -64,8 +64,9 @@ Ext.define('PMG.UserEdit', {
|
|||||||
|
|
||||||
column1.push(
|
column1.push(
|
||||||
{
|
{
|
||||||
xtype: 'textfield',
|
xtype: 'pmgRoleSelector',
|
||||||
name: 'role',
|
name: 'role',
|
||||||
|
disabled: me.userid === 'root@pam',
|
||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
fieldLabel: gettext('Role')
|
fieldLabel: gettext('Role')
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user