[pve-devel] r5885 - in pve-manager/pve2/www/new: . window
svn-commits at proxmox.com
svn-commits at proxmox.com
Mon May 2 09:20:44 CEST 2011
Author: dietmar
Date: 2011-05-02 09:20:44 +0200 (Mon, 02 May 2011)
New Revision: 5885
Modified:
pve-manager/pve2/www/new/Workspace.js
pve-manager/pve2/www/new/window/Wizard.js
Log:
add create container button
Modified: pve-manager/pve2/www/new/Workspace.js
===================================================================
--- pve-manager/pve2/www/new/Workspace.js 2011-05-02 06:12:47 UTC (rev 5884)
+++ pve-manager/pve2/www/new/Workspace.js 2011-05-02 07:20:44 UTC (rev 5885)
@@ -12,7 +12,7 @@
// private
defaultContent: {
title: 'Nothing selected',
- region:'center'
+ region: 'center'
},
setContent: function(comp) {
@@ -180,14 +180,21 @@
baseCls: 'x-btn',
text: "Create VM",
handler: function() {
-
- var wiz = Ext.create('PVE.CreateVMWizard', {
-
- });
-
+ var wiz = Ext.create('PVE.CreateVMWizard', {});
wiz.show();
-
}
+ },
+ {
+ pack: 'end',
+ width: 80,
+ margins: '3 5 0 0',
+ xtype: 'button',
+ baseCls: 'x-btn',
+ text: "Create CT",
+ handler: function() {
+ var wiz = Ext.create('PVE.CreateCTWizard', {});
+ wiz.show();
+ }
}
]
},
Modified: pve-manager/pve2/www/new/window/Wizard.js
===================================================================
--- pve-manager/pve2/www/new/window/Wizard.js 2011-05-02 06:12:47 UTC (rev 5884)
+++ pve-manager/pve2/www/new/window/Wizard.js 2011-05-02 07:20:44 UTC (rev 5885)
@@ -208,7 +208,7 @@
var me = this;
Ext.applyIf(me, {
- title: 'Create new VM',
+ title: 'Create new virtual machine',
items: [
{
title: 'Hardware type',
@@ -271,5 +271,27 @@
}
});
+Ext.define('PVE.CreateCTWizard', {
+ extend: 'PVE.window.Wizard',
+ initComponent: function() {
+ var me = this;
+ Ext.applyIf(me, {
+ title: 'Create new container',
+ items: [
+ {
+ title: 'Not implemented',
+ descr: 'Sorry, this fuctionality is not implelemnted',
+ layout: 'fit',
+ html: 'not implemented'
+ }
+ ]
+ });
+
+ me.callParent();
+ }
+});
+
+
+
More information about the pve-devel
mailing list