Commit b88325e7 authored by Dietmar Maurer's avatar Dietmar Maurer

create dummy GUI for OpenVZ

parent 6d2c25d4
......@@ -80,6 +80,7 @@ JSSRC= \
qemu/Options.js \
qemu/Config.js \
qemu/CreateWizard.js \
openvz/Config.js \
openvz/CreateWizard.js \
storage/ContentView.js \
storage/StatusView.js \
......
......@@ -41,6 +41,7 @@ Ext.define('PVE.StateProvider', {
['nodetab', ''],
['storagetab', ''],
['kvmtab', ''],
['ovztab', ''],
['dctab', '']
],
......
......@@ -251,6 +251,7 @@ Ext.define('PVE.StdWorkspace', {
root: 'PVE.dc.Config',
node: 'PVE.node.Config',
qemu: 'PVE.qemu.Config',
openvz: 'PVE.openvz.Config',
storage: 'PVE.storage.Browser'
};
......
Ext.define('PVE.openvz.Config', {
extend: 'PVE.panel.Config',
alias: 'widget.PVE.openvz.Config',
initComponent: function() {
var me = this;
var nodename = me.pveSelNode.data.node;
if (!nodename) {
throw "no node name specified";
}
var vmid = me.pveSelNode.data.vmid;
if (!vmid) {
throw "no VM ID specified";
}
var vmname = me.pveSelNode.data.name;
var descr = vmname ? " '" + vmname + "'" : '';
Ext.apply(me, {
title: "OpenVZ container " + vmid + descr +
" on node '" + nodename + "'",
hstateid: 'ovztab',
items: [
{
title: 'Summary',
//xtype: 'pveOpenvzSummary',
itemId: 'summary',
html: 'OpenVZ summary - not inplemented!'
},
{
title: 'Options',
itemId: 'options',
html: 'OpenVZ options - not inplemented!'
},
{
title: 'Console',
itemId: 'console',
nodename: nodename,
vmid: vmid,
html: 'OpenVZ console - not inplemented!'
},
{
title: 'Backup',
itemId: 'backup',
html: 'Backup and restore - not implemented!'
},
{
title: 'Permissions',
itemId: 'permissions',
html: 'permissions ' + vmid
}
]
});
me.callParent();
}
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment