[pve-devel] [RFC manager 04/28] use Checkbox from widget toolkit

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Dec 11 16:25:53 CET 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/Makefile                 |  1 -
 www/manager6/ceph/OSD.js              |  4 ++--
 www/manager6/ceph/Pool.js             |  2 +-
 www/manager6/dc/ACLView.js            |  2 +-
 www/manager6/dc/AuthEdit.js           |  4 ++--
 www/manager6/dc/Backup.js             |  2 +-
 www/manager6/dc/UserEdit.js           |  2 +-
 www/manager6/form/Checkbox.js         | 44 -----------------------------------
 www/manager6/grid/FirewallOptions.js  |  2 +-
 www/manager6/grid/FirewallRules.js    |  4 ++--
 www/manager6/grid/Replication.js      |  2 +-
 www/manager6/ha/GroupEdit.js          |  4 ++--
 www/manager6/lxc/CreateWizard.js      |  2 +-
 www/manager6/lxc/MPEdit.js            | 10 ++++----
 www/manager6/lxc/Network.js           |  2 +-
 www/manager6/lxc/Options.js           |  6 ++---
 www/manager6/node/NetworkEdit.js      |  4 ++--
 www/manager6/panel/IPSet.js           |  2 +-
 www/manager6/qemu/HDEdit.js           |  8 +++----
 www/manager6/qemu/HDMove.js           |  2 +-
 www/manager6/qemu/MemoryEdit.js       |  2 +-
 www/manager6/qemu/NetworkEdit.js      |  4 ++--
 www/manager6/qemu/Options.js          | 16 ++++++-------
 www/manager6/qemu/ProcessorEdit.js    |  2 +-
 www/manager6/qemu/Snapshot.js         |  2 +-
 www/manager6/storage/DirEdit.js       |  4 ++--
 www/manager6/storage/GlusterFsEdit.js |  2 +-
 www/manager6/storage/IScsiEdit.js     |  2 +-
 www/manager6/storage/LVMEdit.js       |  4 ++--
 www/manager6/storage/LvmThinEdit.js   |  2 +-
 www/manager6/storage/NFSEdit.js       |  2 +-
 www/manager6/storage/RBDEdit.js       |  4 ++--
 www/manager6/storage/SheepdogEdit.js  |  2 +-
 www/manager6/storage/ZFSEdit.js       |  6 ++---
 www/manager6/storage/ZFSPoolEdit.js   |  4 ++--
 www/manager6/window/Restore.js        |  2 +-
 36 files changed, 62 insertions(+), 107 deletions(-)
 delete mode 100644 www/manager6/form/Checkbox.js

diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 0deea6a5..a5ebf1af 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -27,7 +27,6 @@ JSSRC= 				                 	\
 	data/ResourceStore.js				\
 	data/RRDStore.js				\
 	form/VLanField.js				\
-	form/Checkbox.js				\
 	form/TextField.js				\
 	form/IntegerField.js				\
 	form/RRDTypeSelector.js				\
diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index cb358eab..57f6f065 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -116,7 +116,7 @@ Ext.define('PVE.CephCreateOsd', {
 		    emptyText: 'use OSD disk'
 		},
 		{
-		    xtype: 'pvecheckbox',
+		    xtype: 'proxmoxcheckbox',
 		    name: 'bluestore',
 		    fieldLabel: 'Bluestore',
 		    uncheckedValue: '0',
@@ -139,7 +139,7 @@ Ext.define('PVE.CephRemoveOsd', {
     method: 'DELETE',
     items: [
 	{
-	    xtype: 'pvecheckbox',
+	    xtype: 'proxmoxcheckbox',
 	    name: 'cleanup',
 	    checked: true,
 	    labelWidth: 130,
diff --git a/www/manager6/ceph/Pool.js b/www/manager6/ceph/Pool.js
index cd84ee6d..d4be5208 100644
--- a/www/manager6/ceph/Pool.js
+++ b/www/manager6/ceph/Pool.js
@@ -49,7 +49,7 @@ Ext.define('PVE.CephCreatePool', {
 	    allowBlank: false
 	},
 	{
-	    xtype: 'pvecheckbox',
+	    xtype: 'proxmoxcheckbox',
 	    fieldLabel: gettext('Add Storages'),
 	    name: 'add_storages'
 	}
diff --git a/www/manager6/dc/ACLView.js b/www/manager6/dc/ACLView.js
index f6688f94..acc6de50 100644
--- a/www/manager6/dc/ACLView.js
+++ b/www/manager6/dc/ACLView.js
@@ -47,7 +47,7 @@ Ext.define('PVE.dc.ACLAdd', {
 
 	if (!me.path) {
 	    items.push({
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'propagate',
 		checked: true,
 		uncheckedValue: 0,
diff --git a/www/manager6/dc/AuthEdit.js b/www/manager6/dc/AuthEdit.js
index 91a722e2..9c2ee9bd 100644
--- a/www/manager6/dc/AuthEdit.js
+++ b/www/manager6/dc/AuthEdit.js
@@ -83,7 +83,7 @@ Ext.define('PVE.dc.AuthEdit', {
 	}
 
         column1.push({
-            xtype: 'pvecheckbox',
+            xtype: 'proxmoxcheckbox',
             fieldLabel: gettext('Default'),
             name: 'default',
             uncheckedValue: 0
@@ -115,7 +115,7 @@ Ext.define('PVE.dc.AuthEdit', {
 		    submitEmptyText: false
 		},
 		{
-                    xtype: 'pvecheckbox',
+                    xtype: 'proxmoxcheckbox',
                     fieldLabel: 'SSL',
                     name: 'secure',
                     uncheckedValue: 0
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 235bea6f..27ca2f20 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -182,7 +182,7 @@ Ext.define('PVE.dc.BackupEdit', {
 		name: 'mode'
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Enable'),
 		name: 'enabled',
 		uncheckedValue: 0,
diff --git a/www/manager6/dc/UserEdit.js b/www/manager6/dc/UserEdit.js
index 17c64607..6a16a5ea 100644
--- a/www/manager6/dc/UserEdit.js
+++ b/www/manager6/dc/UserEdit.js
@@ -92,7 +92,7 @@ Ext.define('PVE.dc.UserEdit', {
                 fieldLabel: gettext('Expire')
             },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Enabled'),
 		name: 'enable',
 		uncheckedValue: 0,
diff --git a/www/manager6/form/Checkbox.js b/www/manager6/form/Checkbox.js
deleted file mode 100644
index dc26c05a..00000000
--- a/www/manager6/form/Checkbox.js
+++ /dev/null
@@ -1,44 +0,0 @@
-Ext.define('PVE.form.Checkbox', {
-    extend: 'Ext.form.field.Checkbox',
-    alias: ['widget.pvecheckbox'],
-
-    defaultValue: undefined,
-
-    deleteDefaultValue: false,
-    deleteEmpty: false,
- 
-    inputValue: '1',
-
-    getSubmitData: function() {
-        var me = this,
-            data = null,
-            val;
-        if (!me.disabled && me.submitValue) {
-            val = me.getSubmitValue();
-            if (val !== null) {
-                data = {};
-		if ((val == me.defaultValue) && me.deleteDefaultValue) {
-		    data['delete'] = me.getName();
-		} else {
-                    data[me.getName()] = val;
-		}
-            } else if (me.deleteEmpty) {
-               data = {};
-               data['delete'] = me.getName();
-	    }
-        }
-        return data;
-    },
-
-    // also accept integer 1 as true
-    setRawValue: function(value) {
-	var me = this;
-
-	if (value === 1) {
-            me.callParent([true]);
-	} else {
-            me.callParent([value]);
-	}
-    }
-
-});
\ No newline at end of file
diff --git a/www/manager6/grid/FirewallOptions.js b/www/manager6/grid/FirewallOptions.js
index 60c09ee5..553962df 100644
--- a/www/manager6/grid/FirewallOptions.js
+++ b/www/manager6/grid/FirewallOptions.js
@@ -36,7 +36,7 @@ Ext.define('PVE.FirewallOptions', {
 		    subject: text,
 		    fieldDefaults: { labelWidth: labelWidth || 100 },
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			defaultValue: defaultValue || 0,
 			checked: defaultValue ? true : false,
 			name: name,
diff --git a/www/manager6/grid/FirewallRules.js b/www/manager6/grid/FirewallRules.js
index 2cd79ab7..21751808 100644
--- a/www/manager6/grid/FirewallRules.js
+++ b/www/manager6/grid/FirewallRules.js
@@ -151,7 +151,7 @@ Ext.define('PVE.FirewallRulePanel', {
 	
 	me.column2 = [
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: false,
 		uncheckedValue: 0,
@@ -337,7 +337,7 @@ Ext.define('PVE.FirewallGroupRuleEdit', {
 	    column1: column1,
 	    column2: [
 		{
-		    xtype: 'pvecheckbox',
+		    xtype: 'proxmoxcheckbox',
 		    name: 'enable',
 		    checked: false,
 		    uncheckedValue: 0,
diff --git a/www/manager6/grid/Replication.js b/www/manager6/grid/Replication.js
index 654a8368..8371da80 100644
--- a/www/manager6/grid/Replication.js
+++ b/www/manager6/grid/Replication.js
@@ -52,7 +52,7 @@ Ext.define('PVE.window.ReplicaEdit', {
 		name: 'comment'
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enabled',
 		defaultValue: 'on',
 		checked: true,
diff --git a/www/manager6/ha/GroupEdit.js b/www/manager6/ha/GroupEdit.js
index 0f7e41c3..cdf35509 100644
--- a/www/manager6/ha/GroupEdit.js
+++ b/www/manager6/ha/GroupEdit.js
@@ -164,13 +164,13 @@ Ext.define('PVE.ha.GroupInputPanel', {
 
 	me.column2 = [
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'restricted',
 		uncheckedValue: 0,
 		fieldLabel: 'restricted'
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'nofailback',
 		uncheckedValue: 0,
 		fieldLabel: 'nofailback'
diff --git a/www/manager6/lxc/CreateWizard.js b/www/manager6/lxc/CreateWizard.js
index 5fedb99c..31f54248 100644
--- a/www/manager6/lxc/CreateWizard.js
+++ b/www/manager6/lxc/CreateWizard.js
@@ -216,7 +216,7 @@ Ext.define('PVE.lxc.CreateWizard', {
 			    allowBlank: true
 			},
 			{
-			    xtype: 'pvecheckbox',
+			    xtype: 'proxmoxcheckbox',
 			    name: 'unprivileged',
 			    value: '',
 			    listeners: {
diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js
index 04c9b77c..8501abd6 100644
--- a/www/manager6/lxc/MPEdit.js
+++ b/www/manager6/lxc/MPEdit.js
@@ -217,7 +217,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 	    allowBlank: true
 	});
 
-	me.quota = Ext.createWidget('pvecheckbox', {
+	me.quota = Ext.createWidget('proxmoxcheckbox', {
 	    name: 'quota',
 	    defaultValue: 0,
 	    disabled: me.unprivileged,
@@ -231,15 +231,15 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 
 	if (!isroot) {
 	    me.column2.splice(1, 0, {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'ro',
 		defaultValue: 0,
 		fieldLabel: gettext('Read-only'),
 		hidden: me.insideWizard
 	    });
 
-	    me.backup = Ext.createWidget('pvecheckbox',{
-		xtype: 'pvecheckbox',
+	    me.backup = Ext.createWidget('proxmoxcheckbox',{
+		xtype: 'proxmoxcheckbox',
 		name: 'backup',
 		fieldLabel: gettext('Backup')
 	    });
@@ -247,7 +247,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 		me.column2.push(me.backup);
 	    }
 	    me.column2.push({
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'noreplicate',
 		fieldLabel: gettext('Skip replication')
 	    });
diff --git a/www/manager6/lxc/Network.js b/www/manager6/lxc/Network.js
index 504ee6be..eb8e4660 100644
--- a/www/manager6/lxc/Network.js
+++ b/www/manager6/lxc/Network.js
@@ -146,7 +146,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
 		allowBlank: true
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Firewall'),
 		name: 'firewall',
 		checked: cdata.firewall
diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index 4a438877..952411b7 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -30,7 +30,7 @@ Ext.define('PVE.lxc.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Start at boot'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'onboot',
 			uncheckedValue: 0,
 			defaultValue: 0,
@@ -64,7 +64,7 @@ Ext.define('PVE.lxc.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: '/dev/console',
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'console',
 			uncheckedValue: 0,
 			defaultValue: 1,
@@ -130,7 +130,7 @@ Ext.define('PVE.lxc.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Protection'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'protection',
 			uncheckedValue: 0,
 			defaultValue: 0,
diff --git a/www/manager6/node/NetworkEdit.js b/www/manager6/node/NetworkEdit.js
index aa995693..5e3b05ea 100644
--- a/www/manager6/node/NetworkEdit.js
+++ b/www/manager6/node/NetworkEdit.js
@@ -46,7 +46,7 @@ Ext.define('PVE.node.NetworkEdit', {
 	if (!(me.iftype === 'OVSIntPort' || me.iftype === 'OVSPort' ||
 	      me.iftype === 'OVSBond')) {
 	    column2.push({
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Autostart'),
 		name: 'autostart',
 		uncheckedValue: 0,
@@ -56,7 +56,7 @@ Ext.define('PVE.node.NetworkEdit', {
 
 	if (me.iftype === 'bridge') {
 	    column2.push({
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('VLAN aware'),
 		name: 'bridge_vlan_aware',
 		deleteEmpty: !me.isCreate
diff --git a/www/manager6/panel/IPSet.js b/www/manager6/panel/IPSet.js
index c020a2f3..844097fe 100644
--- a/www/manager6/panel/IPSet.js
+++ b/www/manager6/panel/IPSet.js
@@ -223,7 +223,7 @@ Ext.define('PVE.IPSetCidrEdit', {
 	    column1: column1,
 	    column2: [
 		{
-		    xtype: 'pvecheckbox',
+		    xtype: 'proxmoxcheckbox',
 		    name: 'nomatch',
 		    checked: false,
 		    uncheckedValue: 0,
diff --git a/www/manager6/qemu/HDEdit.js b/www/manager6/qemu/HDEdit.js
index affb2984..1b5bb80f 100644
--- a/www/manager6/qemu/HDEdit.js
+++ b/www/manager6/qemu/HDEdit.js
@@ -218,25 +218,25 @@ Ext.define('PVE.qemu.HDInputPanel', {
 	    fieldLabel: gettext('Cache')
 	},
 	{
-	    xtype: 'pvecheckbox',
+	    xtype: 'proxmoxcheckbox',
 	    fieldLabel: gettext('No backup'),
 	    name: 'nobackup'
 	},
 	{
-	    xtype: 'pvecheckbox',
+	    xtype: 'proxmoxcheckbox',
 	    hidden: me.insideWizard,
 	    fieldLabel: gettext('Skip replication'),
 	    name: 'noreplicate'
 	},
 	{
-	    xtype: 'pvecheckbox',
+	    xtype: 'proxmoxcheckbox',
 	    fieldLabel: gettext('Discard'),
 	    disabled: me.confid && !me.confid.match(/^scsi/),
 	    reference: 'discard',
 	    name: 'discard'
 	},
 	{
-	    xtype: 'pvecheckbox',
+	    xtype: 'proxmoxcheckbox',
 	    disabled: me.confid && !me.confid.match(/^(virtio|scsi)/),
 	    fieldLabel: 'IO thread',
 	    reference: 'iothread',
diff --git a/www/manager6/qemu/HDMove.js b/www/manager6/qemu/HDMove.js
index cb50d492..656f717e 100644
--- a/www/manager6/qemu/HDMove.js
+++ b/www/manager6/qemu/HDMove.js
@@ -68,7 +68,7 @@ Ext.define('PVE.window.HDMove', {
 	});
 
 	items.push({
-	    xtype: 'pvecheckbox',
+	    xtype: 'proxmoxcheckbox',
 	    fieldLabel: gettext('Delete source'),
 	    name: 'deleteDisk',
 	    uncheckedValue: 0,
diff --git a/www/manager6/qemu/MemoryEdit.js b/www/manager6/qemu/MemoryEdit.js
index f979d409..811870d2 100644
--- a/www/manager6/qemu/MemoryEdit.js
+++ b/www/manager6/qemu/MemoryEdit.js
@@ -67,7 +67,7 @@ Ext.define('PVE.qemu.MemoryInputPanel', {
 		labelWidth: labelWidth
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		hotplug: me.hotplug,
 		name: 'ballooning',
 		value: '1',
diff --git a/www/manager6/qemu/NetworkEdit.js b/www/manager6/qemu/NetworkEdit.js
index 9339d846..2c905e7a 100644
--- a/www/manager6/qemu/NetworkEdit.js
+++ b/www/manager6/qemu/NetworkEdit.js
@@ -100,7 +100,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 	    },
 	    me.bridgesel,
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Firewall'),
 		name: 'firewall',
 		labelAlign: 'right'
@@ -158,7 +158,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 		allowBlank: true
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Disconnect'),
 		name: 'disconnect'
 	    }
diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index b5d32537..b8d32ec3 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -59,7 +59,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Start at boot'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'onboot',
 			uncheckedValue: 0,
 			defaultValue: 0,
@@ -129,7 +129,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Use tablet for pointer'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'tablet',
 			checked: true,
 			uncheckedValue: 0,
@@ -164,7 +164,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('ACPI support'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'acpi',
 			checked: true,
 			uncheckedValue: 0,
@@ -194,7 +194,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('KVM hardware virtualization'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'kvm',
 			checked: true,
 			uncheckedValue: 0,
@@ -212,7 +212,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Freeze CPU at startup'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'freeze',
 			uncheckedValue: 0,
 			defaultValue: 0,
@@ -230,7 +230,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Use local time for RTC'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'localtime',
 			uncheckedValue: 0,
 			defaultValue: 0,
@@ -271,7 +271,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Qemu Agent'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'agent',
 			uncheckedValue: 0,
 			defaultValue: 0,
@@ -288,7 +288,7 @@ Ext.define('PVE.qemu.Options', {
 		    xtype: 'pveWindowEdit',
 		    subject: gettext('Protection'),
 		    items: {
-			xtype: 'pvecheckbox',
+			xtype: 'proxmoxcheckbox',
 			name: 'protection',
 			uncheckedValue: 0,
 			defaultValue: 0,
diff --git a/www/manager6/qemu/ProcessorEdit.js b/www/manager6/qemu/ProcessorEdit.js
index 01da7036..9c8bd26b 100644
--- a/www/manager6/qemu/ProcessorEdit.js
+++ b/www/manager6/qemu/ProcessorEdit.js
@@ -74,7 +74,7 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
 		}
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Enable NUMA'),
 		name: 'numa',
 		uncheckedValue: 0
diff --git a/www/manager6/qemu/Snapshot.js b/www/manager6/qemu/Snapshot.js
index bee26eb2..5a39e460 100644
--- a/www/manager6/qemu/Snapshot.js
+++ b/www/manager6/qemu/Snapshot.js
@@ -91,7 +91,7 @@ Ext.define('PVE.window.Snapshot', {
 	    });
 	} else {
 	    items.push({
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'vmstate',
 		uncheckedValue: 0,
 		defaultValue: 0,
diff --git a/www/manager6/storage/DirEdit.js b/www/manager6/storage/DirEdit.js
index 4e196431..4aceaff1 100644
--- a/www/manager6/storage/DirEdit.js
+++ b/www/manager6/storage/DirEdit.js
@@ -49,14 +49,14 @@ Ext.define('PVE.storage.DirInputPanel', {
 
 	me.column2 = [
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
 		fieldLabel: gettext('Enable')
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'shared',
 		uncheckedValue: 0,
 		fieldLabel: gettext('Shared')
diff --git a/www/manager6/storage/GlusterFsEdit.js b/www/manager6/storage/GlusterFsEdit.js
index d861c0b8..85a11615 100644
--- a/www/manager6/storage/GlusterFsEdit.js
+++ b/www/manager6/storage/GlusterFsEdit.js
@@ -141,7 +141,7 @@ Ext.define('PVE.storage.GlusterFsInputPanel', {
 		autoSelect: false
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
diff --git a/www/manager6/storage/IScsiEdit.js b/www/manager6/storage/IScsiEdit.js
index 68a4d8a6..71c595da 100644
--- a/www/manager6/storage/IScsiEdit.js
+++ b/www/manager6/storage/IScsiEdit.js
@@ -127,7 +127,7 @@ Ext.define('PVE.storage.IScsiInputPanel', {
 		autoSelect: false
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
diff --git a/www/manager6/storage/LVMEdit.js b/www/manager6/storage/LVMEdit.js
index c1469891..531b735a 100644
--- a/www/manager6/storage/LVMEdit.js
+++ b/www/manager6/storage/LVMEdit.js
@@ -201,14 +201,14 @@ Ext.define('PVE.storage.LVMInputPanel', {
 		autoSelect: false
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
 		fieldLabel: gettext('Enable')
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'shared',
 		uncheckedValue: 0,
 		fieldLabel: gettext('Shared')
diff --git a/www/manager6/storage/LvmThinEdit.js b/www/manager6/storage/LvmThinEdit.js
index 44be72b9..4270ee81 100644
--- a/www/manager6/storage/LvmThinEdit.js
+++ b/www/manager6/storage/LvmThinEdit.js
@@ -195,7 +195,7 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
 		autoSelect: false
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
diff --git a/www/manager6/storage/NFSEdit.js b/www/manager6/storage/NFSEdit.js
index 728a3ffd..564887ab 100644
--- a/www/manager6/storage/NFSEdit.js
+++ b/www/manager6/storage/NFSEdit.js
@@ -136,7 +136,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
 		autoSelect: false
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
index f8ddef90..9baf402a 100644
--- a/www/manager6/storage/RBDEdit.js
+++ b/www/manager6/storage/RBDEdit.js
@@ -76,7 +76,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
 	/*jslint confusion: true*/
 	me.column2 = [
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
@@ -92,7 +92,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
 		allowBlank: false
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'krbd',
 		uncheckedValue: 0,
 		fieldLabel: 'KRBD'
diff --git a/www/manager6/storage/SheepdogEdit.js b/www/manager6/storage/SheepdogEdit.js
index da56b5c8..5e830d46 100644
--- a/www/manager6/storage/SheepdogEdit.js
+++ b/www/manager6/storage/SheepdogEdit.js
@@ -42,7 +42,7 @@ Ext.define('PVE.storage.SheepdogInputPanel', {
 
 	me.column2 = [
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
diff --git a/www/manager6/storage/ZFSEdit.js b/www/manager6/storage/ZFSEdit.js
index bc9d8baf..631eadc0 100644
--- a/www/manager6/storage/ZFSEdit.js
+++ b/www/manager6/storage/ZFSEdit.js
@@ -71,7 +71,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
 
 	me.column2 = [
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
@@ -85,14 +85,14 @@ Ext.define('PVE.storage.ZFSInputPanel', {
 		allowBlank: false
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'sparse',
 		checked: false,
 		uncheckedValue: 0,
 		fieldLabel: gettext('Thin provision')
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'writecache',
 		checked: true,
 		uncheckedValue: 0,
diff --git a/www/manager6/storage/ZFSPoolEdit.js b/www/manager6/storage/ZFSPoolEdit.js
index cd544b6e..32231b9c 100644
--- a/www/manager6/storage/ZFSPoolEdit.js
+++ b/www/manager6/storage/ZFSPoolEdit.js
@@ -96,14 +96,14 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
 	/*jslint confusion: false*/
 	me.column2 = [
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'enable',
 		checked: true,
 		uncheckedValue: 0,
 		fieldLabel: gettext('Enable')
 	    },
 	    {
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'sparse',
 		checked: false,
 		uncheckedValue: 0,
diff --git a/www/manager6/window/Restore.js b/www/manager6/window/Restore.js
index d32fae00..e68122ab 100644
--- a/www/manager6/window/Restore.js
+++ b/www/manager6/window/Restore.js
@@ -55,7 +55,7 @@ Ext.define('PVE.window.Restore', {
 
 	if (me.vmtype === 'lxc') {
 	    items.push({
-		xtype: 'pvecheckbox',
+		xtype: 'proxmoxcheckbox',
 		name: 'unprivileged',
 		value: '',
 		fieldLabel: gettext('Unprivileged container')
-- 
2.11.0





More information about the pve-devel mailing list