]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
lxc create wizard: add disk size option
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 27 Apr 2015 06:14:32 +0000 (08:14 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 27 Apr 2015 06:21:32 +0000 (08:21 +0200)
www/manager/lxc/CreateWizard.js
www/manager/lxc/Resources.js

index 45193ee4c4315d403513c081be49b5dfd7f5d890..55067318c5d009e4ff3bf12be896d4ccb59a4d15 100644 (file)
@@ -144,7 +144,8 @@ Ext.define('PVE.lxc.CreateWizard', {
                },
                {
                    xtype: 'pveLxcResourceInputPanel',
-                   title: gettext('Resources')
+                   title: gettext('Resources'),
+                   insideWizard: true
                },
                networkpanel,
                {
index 802ddb9c2d7cb470fe848fa04863ef37d3ceb7f4..f852310a3908e87b0fbd8fa796cf6ad884d6cc4d 100644 (file)
@@ -35,18 +35,18 @@ Ext.define('PVE.lxc.RessourceInputPanel', {
        ];
 
        me.column2 = [
-           // {
-           //  xtype: 'numberfield',
-           //  name: 'disk',
-           //  minValue: 0.001,
-           //  maxValue: 128*1024,
-           //  decimalPrecision: 3,
-           //  value: '4',
-           //  step: 1,
-           //  fieldLabel: gettext('Disk size') + ' (GB)',
-           //  labelWidth: labelWidth,
-           //  allowBlank: false
-           // },
+           {
+               xtype: me.insideWizard ? 'numberfield' : 'displayfield',
+               name: 'disk',
+               minValue: 0,
+               maxValue: 128*1024,
+               decimalPrecision: 3,
+               value: '8',
+               step: 1,
+               fieldLabel: gettext('Disk size') + ' (GB)',
+               labelWidth: labelWidth,
+               allowBlank: false
+           },
            {
                xtype: 'numberfield',
                name: 'cpus',