update LXC GUI (support new rootfs and size parameter).
This commit is contained in:
parent
3d1bc0de00
commit
5af09e2471
@ -97,7 +97,6 @@ Ext.define('PVE.lxc.CreateWizard', {
|
||||
value: '',
|
||||
allowBlank: true
|
||||
},
|
||||
storagesel,
|
||||
{
|
||||
xtype: 'textfield',
|
||||
inputType: 'password',
|
||||
@ -142,6 +141,24 @@ Ext.define('PVE.lxc.CreateWizard', {
|
||||
title: gettext('Template'),
|
||||
column1: [ tmplstoragesel, tmplsel]
|
||||
},
|
||||
{
|
||||
xtype: 'inputpanel',
|
||||
title: gettext('Root Disk'),
|
||||
column1: [
|
||||
storagesel,
|
||||
{
|
||||
xtype: 'numberfield',
|
||||
name: 'size',
|
||||
minValue: 0.1,
|
||||
maxValue: 128*1024,
|
||||
decimalPrecision: 3,
|
||||
value: '8',
|
||||
step: 1,
|
||||
fieldLabel: gettext('Disk size') + ' (GB)',
|
||||
allowBlank: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
xtype: 'pveLxcResourceInputPanel',
|
||||
title: gettext('Resources'),
|
||||
|
@ -43,12 +43,16 @@ Ext.define('PVE.lxc.Options', {
|
||||
editor: caps.vms['VM.Config.Options'] && caps.nodes['Sys.Modify'] ?
|
||||
'PVE.qemu.StartupEdit' : undefined
|
||||
},
|
||||
ostemplate: {
|
||||
header: gettext('Template'),
|
||||
ostype: {
|
||||
header: gettext('OS Type'),
|
||||
defaultValue: 'no set'
|
||||
},
|
||||
storage: {
|
||||
header: gettext('Storage'),
|
||||
arch: {
|
||||
header: gettext('Architecture'),
|
||||
defaultValue: 'no set'
|
||||
},
|
||||
rootfs: {
|
||||
header: gettext('Root Disk'),
|
||||
defaultValue: 'no set'
|
||||
}
|
||||
};
|
||||
|
@ -35,18 +35,6 @@ Ext.define('PVE.lxc.RessourceInputPanel', {
|
||||
];
|
||||
|
||||
me.column2 = [
|
||||
{
|
||||
xtype: me.insideWizard ? 'numberfield' : 'displayfield',
|
||||
name: 'disk',
|
||||
minValue: 0,
|
||||
maxValue: 128*1024,
|
||||
decimalPrecision: 3,
|
||||
value: '8',
|
||||
step: 1,
|
||||
fieldLabel: gettext('Disk size') + ' (GB)',
|
||||
labelWidth: labelWidth,
|
||||
allowBlank: false
|
||||
},
|
||||
{
|
||||
xtype: 'numberfield',
|
||||
name: 'cpulimit',
|
||||
@ -147,14 +135,6 @@ Ext.define('PVE.lxc.RessourceView', {
|
||||
never_delete: true,
|
||||
editor: resEditor,
|
||||
defaultValue: 1024
|
||||
},
|
||||
disk: {
|
||||
header: gettext('Disk size'),
|
||||
editor: resEditor,
|
||||
never_delete: true,
|
||||
renderer: function(value) {
|
||||
return PVE.Utils.format_size(value*1024*1024*1024);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user