GUI option for VM protection added

v2 changes:

GUI option for CT protection added
This commit is contained in:
Alen Grizonic 2015-09-03 16:59:30 +02:00 committed by Dietmar Maurer
parent 6380143afe
commit d4e40874dd
2 changed files with 34 additions and 0 deletions

View File

@ -121,6 +121,23 @@ Ext.define('PVE.lxc.Options', {
fieldLabel: gettext('Console mode')
}
} : undefined
},
protection: {
header: gettext('CT protection'),
defaultValue: false,
renderer: PVE.Utils.format_boolean,
editor: caps.vms['VM.Config.Options'] ? {
xtype: 'pveWindowEdit',
subject: gettext('CT protection'),
items: {
xtype: 'pvecheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
deleteDefaultValue: true,
fieldLabel: gettext('Enabled')
}
} : undefined
}
};

View File

@ -237,6 +237,23 @@ Ext.define('PVE.qemu.Options', {
header: gettext('SMBIOS settings (type1)'),
defaultValue: '',
editor: caps.vms['VM.Config.HWType'] ? 'PVE.qemu.Smbios1Edit' : undefined
},
protection: {
header: gettext('VM protection'),
defaultValue: false,
renderer: PVE.Utils.format_boolean,
editor: caps.vms['VM.Config.Options'] ? {
xtype: 'pveWindowEdit',
subject: gettext('VM protection'),
items: {
xtype: 'pvecheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
deleteDefaultValue: true,
fieldLabel: gettext('Enabled')
}
} : undefined
}
};