298c6aaef6
name sections according to the title or content and add the respective onlineHelp to the following panels: - datastore - user management - ACL - backup remote Signed-off-by: Oguz Bektas <o.bektas@proxmox.com> Reviewed-By: Dominik Csapak <d.csapak@proxmox.com> Tested-By: Dominik Csapak <d.csapak@proxmox.com>
61 lines
1.1 KiB
JavaScript
61 lines
1.1 KiB
JavaScript
Ext.define('PBS.window.ACLEdit', {
|
|
extend: 'Proxmox.window.Edit',
|
|
alias: 'widget.pbsACLAdd',
|
|
mixins: ['Proxmox.Mixin.CBind'],
|
|
|
|
onlineHelp: 'user_acl',
|
|
|
|
url: '/access/acl',
|
|
method: 'PUT',
|
|
isAdd: true,
|
|
isCreate: true,
|
|
width: 450,
|
|
|
|
// caller can give a static path
|
|
path: undefined,
|
|
|
|
subject: gettext('User Permission'),
|
|
|
|
getValues: function(dirtyOnly) {
|
|
let me = this;
|
|
let values = me.callParent(arguments);
|
|
|
|
if (me.path) {
|
|
values.path = me.path;
|
|
}
|
|
return values;
|
|
},
|
|
|
|
items: [
|
|
{
|
|
xtype: 'pbsPermissionPathSelector',
|
|
fieldLabel: gettext('Path'),
|
|
cbind: {
|
|
editable: '{!path}',
|
|
value: '{path}',
|
|
},
|
|
name: 'path',
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'pbsUserSelector',
|
|
fieldLabel: gettext('User'),
|
|
name: 'userid',
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'pmxRoleSelector',
|
|
name: 'role',
|
|
value: 'NoAccess',
|
|
fieldLabel: gettext('Role'),
|
|
},
|
|
{
|
|
xtype: 'proxmoxcheckbox',
|
|
name: 'propagate',
|
|
checked: true,
|
|
uncheckedValue: 0,
|
|
fieldLabel: gettext('Propagate'),
|
|
},
|
|
],
|
|
});
|