[pve-devel] r5908 - pve-manager/pve2/www/new/qemu
svn-commits at proxmox.com
svn-commits at proxmox.com
Thu May 5 11:08:58 CEST 2011
Author: dietmar
Date: 2011-05-05 11:08:58 +0200 (Thu, 05 May 2011)
New Revision: 5908
Modified:
pve-manager/pve2/www/new/qemu/CreateWizard.js
Log:
Modified: pve-manager/pve2/www/new/qemu/CreateWizard.js
===================================================================
--- pve-manager/pve2/www/new/qemu/CreateWizard.js 2011-05-05 08:37:41 UTC (rev 5907)
+++ pve-manager/pve2/www/new/qemu/CreateWizard.js 2011-05-05 09:08:58 UTC (rev 5908)
@@ -18,6 +18,15 @@
]
});
+ diskTypeStore = Ext.create('Ext.data.ArrayStore', {
+ fields: ['key'],
+ data : [
+ ['IDE'],
+ ['VIRTIO'],
+ ['SCSI']
+ ]
+ });
+
var nextvmid = PVE.data.ResourceStore.findNextVMID();
var cdfilesel = Ext.create('PVE.form.FileSelector', {
@@ -39,6 +48,12 @@
}
});
+ var hdstoragesel = Ext.create('PVE.form.StorageSelector', {
+ name: 'hdstorage',
+ fieldLabel: 'Storage',
+ allowBlank: false
+ });
+
Ext.applyIf(me, {
title: 'Create new virtual machine',
items: [
@@ -52,6 +67,7 @@
allowBlank: false,
listeners: {
change: function(f, value) {
+ hdstoragesel.setNodename(value);
cdstoragesel.setNodename(value);
cdfilesel.setStorage(undefined, value);
}
@@ -226,13 +242,8 @@
{
title: 'Harddisk',
items: [
+ hdstoragesel,
{
- xtype: 'textfield',
- name: 'diskstorage',
- fieldLabel: 'Storage',
- allowBlank: false
- },
- {
xtype: 'numberfield',
name: 'disksize',
minValue: 1,
@@ -240,7 +251,19 @@
value: 32,
fieldLabel: 'Disk size (GB)',
allowBlank: false
- }
+ },
+ {
+ xtype: 'combobox',
+ name: 'disktype',
+ fieldLabel: 'Controller',
+ store: diskTypeStore,
+ queryMode: 'local',
+ editable: false,
+ value: 'IDE',
+ displayField: 'key',
+ valueField: 'key',
+ allowBlank: false
+ },
]
},
{
@@ -258,7 +281,7 @@
fieldLabel: 'Network card',
store: cardTypeStore,
queryMode: 'local',
- typeAhead: true,
+ editable: false,
value: 'rtl8139',
displayField: 'key',
valueField: 'key',
More information about the pve-devel
mailing list