2020-10-29 15:47:18 +00:00
|
|
|
Ext.define('PBS.AccessControlPanel', {
|
|
|
|
extend: 'Ext.tab.Panel',
|
|
|
|
alias: 'widget.pbsAccessControlPanel',
|
|
|
|
mixins: ['Proxmox.Mixin.CBind'],
|
|
|
|
|
|
|
|
title: gettext('Access Control'),
|
|
|
|
|
2020-11-10 08:23:22 +00:00
|
|
|
tools: [PBS.Utils.get_help_tool("user-mgmt")],
|
|
|
|
|
2020-10-29 15:47:18 +00:00
|
|
|
border: false,
|
|
|
|
defaults: {
|
|
|
|
border: false,
|
|
|
|
},
|
|
|
|
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
xtype: 'pbsUserView',
|
|
|
|
title: gettext('User Management'),
|
|
|
|
itemId: 'users',
|
|
|
|
iconCls: 'fa fa-user',
|
|
|
|
},
|
2020-11-02 13:36:10 +00:00
|
|
|
{
|
|
|
|
xtype: 'pbsTfaView',
|
|
|
|
title: gettext('Two Factor Authentication'),
|
|
|
|
itemId: 'tfa',
|
2021-07-11 10:53:43 +00:00
|
|
|
iconCls: 'fa fa-key',
|
2020-11-02 13:36:10 +00:00
|
|
|
},
|
2020-10-29 15:47:18 +00:00
|
|
|
{
|
|
|
|
xtype: 'pbsTokenView',
|
|
|
|
title: gettext('API Token'),
|
|
|
|
itemId: 'apitokens',
|
|
|
|
iconCls: 'fa fa-user-o',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
xtype: 'pbsACLView',
|
|
|
|
title: gettext('Permissions'),
|
|
|
|
itemId: 'permissions',
|
|
|
|
iconCls: 'fa fa-unlock',
|
|
|
|
},
|
2021-07-09 11:44:00 +00:00
|
|
|
{
|
|
|
|
xtype: 'pmxAuthView',
|
2021-07-11 10:53:43 +00:00
|
|
|
title: gettext('Realms'),
|
2021-07-09 11:44:00 +00:00
|
|
|
itemId: 'domains',
|
2021-07-11 10:53:43 +00:00
|
|
|
iconCls: 'fa fa-address-book-o',
|
2021-07-09 11:44:00 +00:00
|
|
|
},
|
2020-10-29 15:47:18 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
});
|