update LXC GUI (support new rootfs and size parameter).

This commit is contained in:
Dietmar Maurer 2015-08-05 08:49:47 +02:00
parent 3d1bc0de00
commit 5af09e2471
3 changed files with 26 additions and 25 deletions

View File

@ -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'),

View File

@ -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'
}
};

View File

@ -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);
}
}
};