add pool option to openvz create wizard

This commit is contained in:
Dietmar Maurer 2012-02-07 13:07:49 +01:00
parent 425bbb26a5
commit c92c67a6e0

View File

@ -92,6 +92,13 @@ Ext.define('PVE.openvz.CreateWizard', {
} }
], ],
column2: [ column2: [
{
xtype: 'pvePoolSelector',
fieldLabel: gettext('Resource Pool'),
name: 'pool',
value: '',
allowBlank: true
},
storagesel, storagesel,
{ {
xtype: 'textfield', xtype: 'textfield',
@ -126,6 +133,9 @@ Ext.define('PVE.openvz.CreateWizard', {
], ],
onGetValues: function(values) { onGetValues: function(values) {
delete values.confirmpw; delete values.confirmpw;
if (!values.pool) {
delete values.pool;
}
return values; return values;
} }
}, },