mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-06 10:10:47 +00:00
RoleSelector.js: widget to select user role
This commit is contained in:
parent
ec1dd829db
commit
c0ffdd0046
@ -1,6 +1,7 @@
|
||||
JSSRC= \
|
||||
Utils.js \
|
||||
LoginWindow.js \
|
||||
RoleSelector.js \
|
||||
ServerStatus.js \
|
||||
ServerAdministration.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(
|
||||
{
|
||||
xtype: 'textfield',
|
||||
xtype: 'pmgRoleSelector',
|
||||
name: 'role',
|
||||
disabled: me.userid === 'root@pam',
|
||||
allowBlank: false,
|
||||
fieldLabel: gettext('Role')
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user