[pve-devel] [PATCH v2 manager 3/4] lxc: use mount point editor in create wizard
Wolfgang Bumiller
w.bumiller at proxmox.com
Tue Feb 23 15:00:21 CET 2016
---
www/manager/lxc/CreateWizard.js | 37 ++++++++++---------------------------
1 file changed, 10 insertions(+), 27 deletions(-)
diff --git a/www/manager/lxc/CreateWizard.js b/www/manager/lxc/CreateWizard.js
index 53b8c57..7b2da3e 100644
--- a/www/manager/lxc/CreateWizard.js
+++ b/www/manager/lxc/CreateWizard.js
@@ -15,14 +15,6 @@ Ext.define('PVE.lxc.CreateWizard', {
]
});
- var storagesel = Ext.create('PVE.form.StorageSelector', {
- name: 'storage',
- fieldLabel: gettext('Storage'),
- storageContent: 'rootdir',
- autoSelect: true,
- allowBlank: false
- });
-
var tmplsel = Ext.create('PVE.form.FileSelector', {
name: 'ostemplate',
storageContent: 'vztmpl',
@@ -43,6 +35,14 @@ Ext.define('PVE.lxc.CreateWizard', {
}
});
+ var rootfspanel = Ext.create('PVE.lxc.MountPointInputPanel', {
+ title: gettext('Root Disk'),
+ insideWizard: true,
+ create: true,
+ unused: false,
+ confid: 'rootfs',
+ });
+
var networkpanel = Ext.create('PVE.lxc.NetworkInputPanel', {
title: gettext('Network'),
insideWizard: true,
@@ -68,7 +68,7 @@ Ext.define('PVE.lxc.CreateWizard', {
tmplstoragesel.setNodename(value);
tmplsel.setStorage(undefined, value);
networkpanel.setNodename(value);
- storagesel.setNodename(value);
+ rootfspanel.setNodename(value);
}
}
},
@@ -141,24 +141,7 @@ Ext.define('PVE.lxc.CreateWizard', {
title: gettext('Template'),
column1: [ tmplstoragesel, tmplsel]
},
- {
- xtype: 'inputpanel',
- title: gettext('Root Disk'),
- column1: [
- storagesel,
- {
- xtype: 'numberfield',
- name: 'rootfs',
- minValue: 0.1,
- maxValue: 128*1024,
- decimalPrecision: 3,
- value: '8',
- step: 1,
- fieldLabel: gettext('Disk size') + ' (GB)',
- allowBlank: false
- }
- ]
- },
+ rootfspanel,
{
xtype: 'pveLxcCPUInputPanel',
title: gettext('CPU'),
--
2.1.4
More information about the pve-devel
mailing list