[pve-devel] r5879 - in pve-manager/pve2/www/new: . window

svn-commits at proxmox.com svn-commits at proxmox.com
Wed Apr 27 06:38:40 CEST 2011


Author: dietmar
Date: 2011-04-27 06:38:40 +0200 (Wed, 27 Apr 2011)
New Revision: 5879

Modified:
   pve-manager/pve2/www/new/Workspace.js
   pve-manager/pve2/www/new/window/Wizard.js
Log:
simplify wizard layout


Modified: pve-manager/pve2/www/new/Workspace.js
===================================================================
--- pve-manager/pve2/www/new/Workspace.js	2011-04-26 06:25:33 UTC (rev 5878)
+++ pve-manager/pve2/www/new/Workspace.js	2011-04-27 04:38:40 UTC (rev 5879)
@@ -180,7 +180,7 @@
 			    text: "Create VM",
 			    handler: function() {
 
-				var wiz = Ext.create('PVE.window.Wizard', {
+				var wiz = Ext.create('PVE.CreateVMWizard', {
 
 				});
 

Modified: pve-manager/pve2/www/new/window/Wizard.js
===================================================================
--- pve-manager/pve2/www/new/window/Wizard.js	2011-04-26 06:25:33 UTC (rev 5878)
+++ pve-manager/pve2/www/new/window/Wizard.js	2011-04-27 04:38:40 UTC (rev 5879)
@@ -48,44 +48,36 @@
 	    resizable: false,
 	    layout: 'border',
 	    title: 'Proxmox VE Wizard',
-
 	    items: [
 		{
 		    region: 'north',
-		    height: 30,
-		    layout: { 
-			type: 'hbox',
-			align : 'stretch'
-		    },
-		    baseCls: 'x-plain',		
-		    defaults: {
-			baseCls: 'x-plain'			
-		    },
-		    border: false,
-		    margins: '2 0 5 0',
-		    items: [
-			{
-			    margins: '0 0 0 4',
-			    html: '<a target=_blank href="http://www.proxmox.com">' +
-				'<img height=30 width=209 src="/pve2/images/proxmox_logo.png"/></a>'
-			}
-		    ]
+		    layout: 'fit',
+		    margins: '5 5 5 5',
+		    bodyPadding: 10,
+		    items: {
+			border: false,
+			html: '<h1>Hardware Type</h1>' +
+			    'What hardware type do you want to install?'
+		    }
 		},
 		{
 		    region: 'center',
 		    itemId: 'wizcontent',
-		    xtype: 'panel',
-		    layout: 'card',
+		    xtype: 'tabpanel',
+		    //tabPosition: 'bottom',
 		    activeItem: 0,
-		    stateful: false,
-		    margins: '0 5 5 5',
+		    margins: '0 5 0 5',
 		    bodyPadding: 5,
-		    defaults: {
-			border: false
-		    },
 		    items: [
 			{
-			    html: 'test'
+		            xtype: 'fieldset',
+			    title: 'Hardware type'
+	    
+			},
+			{
+		            xtype: 'fieldset',
+			    title: 'Another Information'
+	    
 			}
 		    ]
 		},
@@ -96,3 +88,19 @@
     }
 });
 
+Ext.define('PVE.CreateVMWizard', {
+    extend: 'PVE.window.Wizard',
+
+    initComponent: function() {
+	var me = this;
+
+	Ext.applyIf(me, {
+	    title: 'Create new VM'
+	});
+
+	me.callParent();
+    }
+});
+
+
+




More information about the pve-devel mailing list