]> git.proxmox.com Git - pve-manager.git/commitdiff
use windowEdit from widget toolkit
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Dec 2017 17:12:41 +0000 (18:12 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Thu, 25 Jan 2018 12:36:38 +0000 (13:36 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
57 files changed:
www/manager6/Makefile
www/manager6/ceph/Monitor.js
www/manager6/ceph/OSD.js
www/manager6/ceph/Pool.js
www/manager6/dc/ACLView.js
www/manager6/dc/AuthEdit.js
www/manager6/dc/Backup.js
www/manager6/dc/GroupEdit.js
www/manager6/dc/PoolEdit.js
www/manager6/dc/SecurityGroups.js
www/manager6/dc/UserEdit.js
www/manager6/dc/UserView.js
www/manager6/grid/FirewallAliases.js
www/manager6/grid/FirewallOptions.js
www/manager6/grid/FirewallRules.js
www/manager6/grid/PoolMembers.js
www/manager6/grid/Replication.js
www/manager6/ha/GroupEdit.js
www/manager6/ha/ResourceEdit.js
www/manager6/lxc/DNS.js
www/manager6/lxc/MPEdit.js
www/manager6/lxc/Network.js
www/manager6/lxc/Options.js
www/manager6/lxc/ResourceEdit.js
www/manager6/node/Subscription.js
www/manager6/panel/IPSet.js
www/manager6/qemu/BootOrderEdit.js
www/manager6/qemu/CDEdit.js
www/manager6/qemu/CPUOptions.js
www/manager6/qemu/DisplayEdit.js
www/manager6/qemu/HDEdit.js
www/manager6/qemu/HDEfi.js
www/manager6/qemu/HDThrottle.js
www/manager6/qemu/KeyboardEdit.js
www/manager6/qemu/MemoryEdit.js
www/manager6/qemu/NetworkEdit.js
www/manager6/qemu/OSTypeEdit.js
www/manager6/qemu/Options.js
www/manager6/qemu/ProcessorEdit.js
www/manager6/qemu/QemuBiosEdit.js
www/manager6/qemu/ScsiHwEdit.js
www/manager6/qemu/Smbios1Edit.js
www/manager6/qemu/USBEdit.js
www/manager6/storage/DirEdit.js
www/manager6/storage/GlusterFsEdit.js
www/manager6/storage/IScsiEdit.js
www/manager6/storage/LVMEdit.js
www/manager6/storage/LvmThinEdit.js
www/manager6/storage/NFSEdit.js
www/manager6/storage/RBDEdit.js
www/manager6/storage/SheepdogEdit.js
www/manager6/storage/ZFSEdit.js
www/manager6/storage/ZFSPoolEdit.js
www/manager6/window/Edit.js [deleted file]
www/manager6/window/NotesEdit.js
www/manager6/window/Restore.js
www/manager6/window/StartupEdit.js

index 6fdb73413f23db45556291b2312bda428c721df9..0278396f9736277d2c0d9dae2d9c2c7e06024b3a 100644 (file)
@@ -74,7 +74,6 @@ JSSRC=                                                        \
        panel/InputPanel.js                             \
        panel/GaugeWidget.js                            \
        panel/HealthWidget.js                           \
-       window/Edit.js                                  \
        window/LoginWindow.js                           \
        window/TaskViewer.js                            \
        window/Wizard.js                                \
index f23995c84aefe630437f85b86b631c286cd245b0..549fd315014547d3bf42a5e4aa6220d6ebd6707c 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.CephCreateMon', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveCephCreateMon'],
 
     subject: 'Ceph Monitor/Manager',
index bf15eff6c222193c22ffadba5590239ad56a9410..c860e05f1e623bc3e7a82d7f96b1831a61bbcda0 100644 (file)
@@ -74,7 +74,7 @@ Ext.define('PVE.form.CephDiskSelector', {
 });
 
 Ext.define('PVE.CephCreateOsd', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveCephCreateOsd'],
 
     subject: 'Ceph OSD',
@@ -130,7 +130,7 @@ Ext.define('PVE.CephCreateOsd', {
 });
 
 Ext.define('PVE.CephRemoveOsd', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveCephRemoveOsd'],
 
     isRemove: true,
index ee152da836118854d3e64d7173cd7c95b575a405..d02eedde99faad45eaf6d863dc38cb5ddb308cf8 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.CephCreatePool', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: 'widget.pveCephCreatePool',
 
     showProgress: true,
index b3438cbffcfef91d187e7607d95896bb00832490..a9ad7a64813f7b25d287ed64be724eb39058c96e 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.dc.ACLAdd', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveACLAdd'],
     url: '/access/acl',
     method: 'PUT',
index dbb18c8b265a3c4c1a200e645de8200eb0bd93ca..4b41ea0a2c3d075b5ab097f9dc2794425543139e 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.dc.AuthEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveDcAuthEdit'],
 
     isAdd: true,
index 9ddd4f0d98e33d5fda434ac4a3c1053e69720d79..3183e5ef0153225089ac149e8971e66a83cbd758 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.dc.BackupEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveDcBackupEdit'],
 
     defaultFocus: undefined,
index 6f17c5b5613456881c26376f42d052ec30c103c1..9ee338e728e34e6ee2c5114ee49255273d4caa85 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.dc.GroupEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveDcGroupEdit'],
 
     initComponent : function() {
index ce466af8189d3c19447ea30d1b88f0965b072de2..afc24a66a528dedfd4bde3cbf18d1c59ffd6c5cf 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.dc.PoolEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveDcPoolEdit'],
 
     initComponent : function() {
index b2f9f27df5689b40061c6c8918ccdd81af3ecd55..dd5eafe9fe877a71731f21f9d26c32ba4d596e2d 100644 (file)
@@ -6,7 +6,7 @@ Ext.define('pve-security-groups', {
 });
 
 Ext.define('PVE.SecurityGroupEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     base_url: "/cluster/firewall/groups",
 
index 6a16a5ea16c08b501cf1ec7540ed4446a65129a5..4b4671041d45dd897e658405dd5108e474642ff9 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.dc.UserEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: ['widget.pveDcUserEdit'],
 
     isAdd: true,
index f701d50d9b462923dd39e1d31ae2e14638135329..da1b516a66b46a560bab51f97a10a4964a597d4a 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.window.PasswordEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index eb9a9aa2358bfdc8c3238149b74cfc9fe3ea12b3..bb38fd2638ab89a169d266c4ebc9999667ff23db 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.FirewallAliasEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     base_url: undefined,
     
index 7ff98ec6633ee1b8537192ba0f3497df199405d3..87f6790c566dacdb1bdbe912290f32796f7eefdb 100644 (file)
@@ -38,7 +38,7 @@ Ext.define('PVE.FirewallOptions', {
                required: true,
                defaultValue: 'nolog',
                editor: {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: name,
                    fieldDefaults: { labelWidth: labelWidth || 100 },
                    items: {
@@ -85,7 +85,7 @@ Ext.define('PVE.FirewallOptions', {
                required: true,
                defaultValue: 'DROP',
                editor: {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Input Policy'),
                    items: {
                        xtype: 'pveFirewallPolicySelector',
@@ -101,7 +101,7 @@ Ext.define('PVE.FirewallOptions', {
                required: true,
                defaultValue: 'ACCEPT',
                editor: {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Output Policy'),
                    items: {
                        xtype: 'pveFirewallPolicySelector',
index ee618d90b082d3b685630d85dd6693e7ebf961a5..4b899917f433495da4e1802db2674886fa665ea4 100644 (file)
@@ -222,7 +222,7 @@ Ext.define('PVE.FirewallRulePanel', {
 });
 
 Ext.define('PVE.FirewallRuleEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     base_url: undefined,
     list_refs_url: undefined,
@@ -287,7 +287,7 @@ Ext.define('PVE.FirewallRuleEdit', {
 });
 
 Ext.define('PVE.FirewallGroupRuleEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     base_url: undefined,
 
index 6c50fe7b6997659d810ddcd5a546cd3b6a579477..680e27318e3b0ff8f3318204ff200707c90f7877 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.pool.AddVM', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     width: 600,
     height: 400,
     isAdd: true,
@@ -97,7 +97,7 @@ Ext.define('PVE.pool.AddVM', {
 });
 
 Ext.define('PVE.pool.AddStorage', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
 
index ad9aa7a5ae61960fa2a598549371b2607e7fbebf..995bf22c8e0f2380500d3745c1083ee8b8354e2d 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.window.ReplicaEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     xtype: 'pveReplicaEdit',
 
     subject: gettext('Replication Job'),
index 623b1dc75c5db6292d4e6dee58ab97ceaee8126b..4570b6a298100bc8fccc598fef989a65e7be05f4 100644 (file)
@@ -191,7 +191,7 @@ Ext.define('PVE.ha.GroupInputPanel', {
 });
 
 Ext.define('PVE.ha.GroupEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     groupId: undefined,
 
index 850da7f0555ca4ec1d448975931be4323879e756..4feb8c11f20e432cdaa3304faccdff425fcee803 100644 (file)
@@ -155,7 +155,7 @@ Ext.define('PVE.ha.VMResourceInputPanel', {
 });
 
 Ext.define('PVE.ha.VMResourceEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     vmid: undefined,
     guestType: undefined,
index 9818ff2f76bd6690918b906106ebfb2621ccd28f..5d1eb93982a0ee788c765faa568d2dcc114f8928 100644 (file)
@@ -97,7 +97,7 @@ Ext.define('PVE.lxc.DNSInputPanel', {
 });
 
 Ext.define('PVE.lxc.DNSEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
@@ -161,7 +161,7 @@ Ext.define('PVE.lxc.DNS', {
                defaultValue: me.pveSelNode.data.name,
                header: gettext('Hostname'),
                editor: caps.vms['VM.Config.Network'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Hostname'),
                    items: {
                        xtype: 'inputpanel',
index aba3aa0cd758db2ae32f17a0c7d728f94409a258..6a7e8a99b4ed0117149737808408aee85c26adb1 100644 (file)
@@ -286,7 +286,7 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
 });
 
 Ext.define('PVE.lxc.MountPointEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     unprivileged: false,
 
index 1cf57fe25a2ff3e39f41739d0c63cb1430070893..f7ca8e73554d56c8ff89fee907e288282e7ac676 100644 (file)
@@ -293,7 +293,7 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
        
 
 Ext.define('PVE.lxc.NetworkEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     isAdd: true,
 
index b19b3419ea89b11cfce86cf4bfb698b9a9d58edf..0633f9f1241693365307b9818662dcdbc4c1f020 100644 (file)
@@ -27,7 +27,7 @@ Ext.define('PVE.lxc.Options', {
                defaultValue: '',
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Start at boot'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -61,7 +61,7 @@ Ext.define('PVE.lxc.Options', {
                defaultValue: 1,
                renderer: Proxmox.Utils.format_enabled_toggle,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: '/dev/console',
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -78,7 +78,7 @@ Ext.define('PVE.lxc.Options', {
                header: gettext('TTY count'),
                defaultValue: 2,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('TTY count'),
                    items: {
                        xtype: 'proxmoxintegerfield',
@@ -96,7 +96,7 @@ Ext.define('PVE.lxc.Options', {
                header: gettext('Console mode'),
                defaultValue: 'tty',
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Console mode'),
                    items: {
                        xtype: 'proxmoxKVComboBox',
@@ -118,7 +118,7 @@ Ext.define('PVE.lxc.Options', {
                defaultValue: false,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Protection'),
                    items: {
                        xtype: 'proxmoxcheckbox',
index 4666df8f39b12fe7d78e0c6a8d02bd66a04164a4..68d785a6f9a0becea1ac06d2e2a3bb5beb341382 100644 (file)
@@ -2,7 +2,7 @@
 var labelWidth = 120;
 
 Ext.define('PVE.lxc.MemoryEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
@@ -20,7 +20,7 @@ Ext.define('PVE.lxc.MemoryEdit', {
 
 
 Ext.define('PVE.lxc.CPUEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 61af058f7cdc7dd71477ee4de2f15b9836288c25..478d2e0bf7ecc61d761c6537e034c1eff74ba3d0 100644 (file)
@@ -1,6 +1,6 @@
 /*global Blob*/
 Ext.define('PVE.node.SubscriptionKeyEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     title: gettext('Upload Subscription Key'),
     width: 300,
     items: {
index 8c1c7fc8e2e514a874e0fa4b5f3216b35e3f8e90..9af60e12676912697c9f7dab47ccf65cbd62fd73 100644 (file)
@@ -62,7 +62,7 @@ Ext.define('PVE.IPSetList', {
            if (!rec) {
                return;
            }
-           var win = Ext.create('PVE.window.Edit', {
+           var win = Ext.create('Proxmox.window.Edit', {
                subject: "IPSet '" + rec.data.name + "'",
                url: me.base_url,
                method: 'POST',
@@ -103,7 +103,7 @@ Ext.define('PVE.IPSetList', {
            text: gettext('Create'),
            handler: function() {
                sm.deselectAll();
-               var win = Ext.create('PVE.window.Edit', {
+               var win = Ext.create('Proxmox.window.Edit', {
                    subject: 'IPSet',
                    url: me.base_url,
                    method: 'POST',
@@ -163,7 +163,7 @@ Ext.define('PVE.IPSetList', {
 });
 
 Ext.define('PVE.IPSetCidrEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     cidr: undefined,
 
index 03c2f1aeb8f586c86f3be82a1dc83bf7bb52072c..4c12bfb680a32c8466bdcac317bc2a92ca9a548c 100644 (file)
@@ -149,7 +149,7 @@ Ext.define('PVE.qemu.BootOrderPanel', {
 });
 
 Ext.define('PVE.qemu.BootOrderEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     items: [{
        xtype: 'pveQemuBootOrderPanel',
index aa359dc6860b57fbc01546fc16b8f687503a3b2b..8b6e944c91ec6d565b527677c613e3e488eb0cb5 100644 (file)
@@ -142,7 +142,7 @@ Ext.define('PVE.qemu.CDInputPanel', {
 });
 
 Ext.define('PVE.qemu.CDEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 3c75990bb98b933d56429708948eaf63b1813cd7..aa5684da5884e9c072b3735221c640aa28bcc156 100644 (file)
@@ -56,7 +56,7 @@ Ext.define('PVE.qemu.CPUOptionsInputPanel', {
 });
 
 Ext.define('PVE.qemu.CPUOptions', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 0141e9c228e0af8a3f798730bb914e3a95715b98..00df003688e53392853d00f58a2fad0037fb7156 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.qemu.DisplayEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     vmconfig: undefined,
 
index fa0cc67fa7d0b985f1973106273e032bcc9388d0..73f51cd29fdac8939540bbe1259f83d4c26e4f03 100644 (file)
@@ -249,7 +249,7 @@ Ext.define('PVE.qemu.HDInputPanel', {
 /*jslint confusion: false */
 
 Ext.define('PVE.qemu.HDEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     isAdd: true,
 
index 802b3090d95436678a042f5d6444bd11c496080e..f228e849096b85ee0a986c94e1003a9d2972960c 100644 (file)
@@ -51,7 +51,7 @@ Ext.define('PVE.qemu.EFIDiskInputPanel', {
 });
 
 Ext.define('PVE.qemu.EFIDiskEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     isAdd: true,
     subject: gettext('EFI Disk'),
index 1cae658fb1b929dc127a6850d37cd4144e0d3242..3a63f8989045917aa9273c89ac4524cede38e18f 100644 (file)
@@ -158,7 +158,7 @@ Ext.define('PVE.qemu.HDThrottleInputPanel', {
 });
 
 Ext.define('PVE.qemu.HDThrottle', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     isAdd: true,
 
index dbf0300eb32e82bfb899161a96595850ad68c697..1011f47016da3b38850ee479b624f2522cf62ba1 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.qemu.KeyboardEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index c69ed7b40f3f390ec10a3c83a87ea9071a21aff4..9c979e2475932bbb7dabe7d96af93547babd4a41 100644 (file)
@@ -149,7 +149,7 @@ Ext.define('PVE.qemu.MemoryInputPanel', {
 });
 
 Ext.define('PVE.qemu.MemoryEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 1661a45445ad58e4ddcaa8ae906b21768572006f..3f591409ff27ee3e4dbfd332d951b21c66eb1b27 100644 (file)
@@ -169,7 +169,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 });
 
 Ext.define('PVE.qemu.NetworkEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     isAdd: true,
 
index 27b0c40cd9f814c7d98a10066dd9a6fc60041c57..eb33c98b83e18fe14335cc432e0da8cb33ba5146 100644 (file)
@@ -96,7 +96,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
 });
 
 Ext.define('PVE.qemu.OSTypeEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     subject: 'OS Type',
 
index 8e70d301f677220a63f6c9ae54a4c6738d867183..5b8b5dc44cf28856719429f9bdea420d20d8849e 100644 (file)
@@ -27,7 +27,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: me.pveSelNode.data.name,
                header: gettext('Name'),
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Name'),
                    items: {
                        xtype: 'inputpanel',
@@ -56,7 +56,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: '',
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Start at boot'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -126,7 +126,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: true,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.HWType'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Use tablet for pointer'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -144,7 +144,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: 'disk,network,usb',
                renderer:  PVE.Utils.render_hotplug_features,
                editor: caps.vms['VM.Config.HWType'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Hotplug'),
                    items: {
                        xtype: 'pveHotplugFeatureSelector',
@@ -161,7 +161,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: true,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.HWType'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('ACPI support'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -191,7 +191,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: true,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.HWType'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('KVM hardware virtualization'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -209,7 +209,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: false,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.PowerMgmt'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Freeze CPU at startup'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -227,7 +227,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: false,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Use local time for RTC'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -244,7 +244,7 @@ Ext.define('PVE.qemu.Options', {
                header: gettext('RTC start date'),
                defaultValue: 'now',
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('RTC start date'),
                    items: {
                        xtype: 'proxmoxtextfield',
@@ -268,7 +268,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: false,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Qemu Agent'),
                    items: {
                        xtype: 'proxmoxcheckbox',
@@ -285,7 +285,7 @@ Ext.define('PVE.qemu.Options', {
                defaultValue: false,
                renderer: Proxmox.Utils.format_boolean,
                editor: caps.vms['VM.Config.Options'] ? {
-                   xtype: 'pveWindowEdit',
+                   xtype: 'proxmoxWindowEdit',
                    subject: gettext('Protection'),
                    items: {
                        xtype: 'proxmoxcheckbox',
index b2b39f8f02e2d940d0831d23b2d1411071ff363b..6ad4fc0015755c38f6337422892c8bbe77b2c5e0 100644 (file)
@@ -133,7 +133,7 @@ Ext.define('PVE.qemu.ProcessorInputPanel', {
 });
 
 Ext.define('PVE.qemu.ProcessorEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index a85f2124d795ff768fe1e07ed86ef176dc8707dd..a0fad159d45ec7b866acef8558c327d0f627e6dd 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.qemu.BiosEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: 'widget.pveQemuBiosEdit',
 
     initComponent : function() {
index cbab5965fad4ca4c7d7e8efae506098249a2e7f5..a0d6c6453db45e3c3a3c900f880b192f6b5889f2 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.qemu.ScsiHwEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 866627f2350bfe1249a7b57c2f6e54787f5bd2cd..31ea45589ecbe32ed320af074f2c6566397aa447 100644 (file)
@@ -78,7 +78,7 @@ Ext.define('PVE.qemu.Smbios1InputPanel', {
 });
 
 Ext.define('PVE.qemu.Smbios1Edit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        /*jslint confusion: true */
index ad36050611e55d99af6cb48bc79eb5626945e54a..cf1ec42797fbed92e7e23cd9a72f685087d47f9a 100644 (file)
@@ -150,7 +150,7 @@ Ext.define('PVE.qemu.USBInputPanel', {
 });
 
 Ext.define('PVE.qemu.USBEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     vmconfig: undefined,
 
index 625cf0ce8c77b24a592325db4df7b41499093f0e..fff6f21349eda7b72508be6b75ec59afc467e4e6 100644 (file)
@@ -91,7 +91,7 @@ Ext.define('PVE.storage.DirInputPanel', {
 });
 
 Ext.define('PVE.storage.DirEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index fe7e2a00180a111aedbca819fd572f4526808183..c69386312bb3ce7956b9257405e24fea88b3170a 100644 (file)
@@ -165,7 +165,7 @@ Ext.define('PVE.storage.GlusterFsInputPanel', {
 });
 
 Ext.define('PVE.storage.GlusterFsEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 71c595da6772a7544db1db9a8609c51245bd2e41..625788bdd252941db2e8704e2ca7bb77dbc3d331 100644 (file)
@@ -146,7 +146,7 @@ Ext.define('PVE.storage.IScsiInputPanel', {
 });
 
 Ext.define('PVE.storage.IScsiEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 531b735a78d1c76e145858912f4bfc7a24d739bf..d307624d2a6163c76dc54c43df1c2be1a4f9107e 100644 (file)
@@ -220,7 +220,7 @@ Ext.define('PVE.storage.LVMInputPanel', {
 });
 
 Ext.define('PVE.storage.LVMEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 4270ee819d001dfcd3161940090ecaf8f209da3f..406be33482eba054e0a88f4c94aa8fa86e6e39e0 100644 (file)
@@ -208,7 +208,7 @@ Ext.define('PVE.storage.LvmThinInputPanel', {
 });
 
 Ext.define('PVE.storage.LvmThinEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 82cbd0b75fa8b1ef0c16cec961912a7766246695..2bd6d94362346e7012aa84d925e952e940435019 100644 (file)
@@ -160,7 +160,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
 });
 
 Ext.define('PVE.storage.NFSEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 9baf402aa3c3653c5e2a11557021dfb49f12e303..aff23ddefc506449f639d8e5f7311c8257a4ee25 100644 (file)
@@ -117,7 +117,7 @@ Ext.define('PVE.storage.RBDInputPanel', {
 });
 
 Ext.define('PVE.storage.RBDEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 5e830d46dbc1561583c90a54fce9edf4c80e8988..d8e3674dffe107fb054cba7f26f2a2ac98e5af77 100644 (file)
@@ -67,7 +67,7 @@ Ext.define('PVE.storage.SheepdogInputPanel', {
 });
 
 Ext.define('PVE.storage.SheepdogEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 631eadc09242861f5f9286343a16cdd03c0fcdbc..c37a73355da87812339b360f8c624057eb62fef9 100644 (file)
@@ -124,7 +124,7 @@ Ext.define('PVE.storage.ZFSInputPanel', {
 });
 
 Ext.define('PVE.storage.ZFSEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 32231b9c0e78e35dc7434ad86aa7e4150639b653..bbc478babd4e27ef3c3d4eae07759b4d05f5d7bb 100644 (file)
@@ -135,7 +135,7 @@ Ext.define('PVE.storage.ZFSPoolInputPanel', {
 });
 
 Ext.define('PVE.storage.ZFSPoolEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
diff --git a/www/manager6/window/Edit.js b/www/manager6/window/Edit.js
deleted file mode 100644 (file)
index f8c0fed..0000000
+++ /dev/null
@@ -1,308 +0,0 @@
-Ext.define('PVE.window.Edit', {
-    extend: 'Ext.window.Window',
-    alias: 'widget.pveWindowEdit',
-    resizable: false,
-
-    // use this tio atimatically generate a title like
-    // Create: <subject>
-    subject: undefined,
-
-    // set isCreate to true if you want a Create button (instead of
-    // OK and RESET) 
-    isCreate: false,
-
-    // set to true if you want an Add button (instead of Create)
-    isAdd: false,
-
-    // set to true if you want an Remove button (instead of Create)
-    isRemove: false,
-
-    backgroundDelay: 0,
-
-    // needed for finding the reference to submitbutton
-    // because we do not have a controller
-    referenceHolder: true,
-    defaultButton: 'submitbutton',
-
-    // finds the first form field
-    defaultFocus: 'field',
-
-    showProgress: false,
-
-    // assign a reference from pve-docs, to add a help button docked to the
-    // bottom of the window. If undefined we magically fall back to the
-    // onlineHelp of our first item, if set.
-    onlineHelp: undefined,
-
-    isValid: function() {
-       var me = this;
-
-       var form = me.formPanel.getForm();
-       return form.isValid();
-    },
-
-    getValues: function(dirtyOnly) {
-       var me = this;
-
-        var values = {};
-
-       var form = me.formPanel.getForm();
-
-        form.getFields().each(function(field) {
-            if (!field.up('inputpanel') && (!dirtyOnly || field.isDirty())) {
-                Proxmox.Utils.assemble_field_data(values, field.getSubmitData());
-            }
-        });
-
-       Ext.Array.each(me.query('inputpanel'), function(panel) {
-           Proxmox.Utils.assemble_field_data(values, panel.getValues(dirtyOnly));
-       });
-
-        return values;
-    },
-
-    setValues: function(values) {
-       var me = this;
-
-       var form = me.formPanel.getForm();
-
-       Ext.iterate(values, function(fieldId, val) {
-           var field = form.findField(fieldId);
-           if (field && !field.up('inputpanel')) {
-               field.setValue(val);
-                if (form.trackResetOnLoad) {
-                    field.resetOriginalValue();
-                }
-            }
-       });
-       Ext.Array.each(me.query('inputpanel'), function(panel) {
-           panel.setValues(values);
-       });
-    },
-
-    submit: function() {
-       var me = this;
-
-       var form = me.formPanel.getForm();
-
-       var values = me.getValues();
-       Ext.Object.each(values, function(name, val) {
-           if (values.hasOwnProperty(name)) {
-                if (Ext.isArray(val) && !val.length) {
-                   values[name] = '';
-               }
-           }
-       });
-
-       if (me.digest) {
-           values.digest = me.digest;
-       }
-
-       if (me.backgroundDelay) {
-           values.background_delay = me.backgroundDelay;
-       }
-
-       var url =  me.url;
-       if (me.method === 'DELETE') {
-           url = url + "?" + Ext.Object.toQueryString(values);
-           values = undefined;
-       }
-
-       Proxmox.Utils.API2Request({
-           url: url,
-           waitMsgTarget: me,
-           method: me.method || (me.backgroundDelay ? 'POST' : 'PUT'),
-           params: values,
-           failure: function(response, options) {
-               if (response.result && response.result.errors) {
-                   form.markInvalid(response.result.errors);
-               }
-               Ext.Msg.alert(gettext('Error'), response.htmlStatus);
-           },
-           success: function(response, options) {
-               var hasProgressBar = (me.backgroundDelay || me.showProgress) &&
-                   response.result.data ? true : false;
-
-               if (hasProgressBar) {
-                   // stay around so we can trigger our close events
-                   // when background action is completed
-                   me.hide();
-
-                   var upid = response.result.data;
-                   var win = Ext.create('PVE.window.TaskProgress', { 
-                       upid: upid,
-                       listeners: {
-                           destroy: function () {
-                               me.close();
-                           }
-                       }
-                   });
-                   win.show();
-               } else {
-                   me.close();
-               }
-           }
-       });
-    },
-
-    load: function(options) {
-       var me = this;
-
-       var form = me.formPanel.getForm();
-
-       options = options || {};
-
-       var newopts = Ext.apply({
-           waitMsgTarget: me
-       }, options);
-
-       var createWrapper = function(successFn) {
-           Ext.apply(newopts, {
-               url: me.url,
-               method: 'GET',
-               success: function(response, opts) {
-                   form.clearInvalid();
-                   me.digest = response.result.data.digest;
-                   if (successFn) {
-                       successFn(response, opts);
-                   } else {
-                       me.setValues(response.result.data);
-                   }
-                   // hack: fix ExtJS bug
-                   Ext.Array.each(me.query('radiofield'), function(f) {
-                       f.resetOriginalValue();
-                   });
-               },
-               failure: function(response, opts) {
-                   Ext.Msg.alert(gettext('Error'), response.htmlStatus, function() {
-                       me.close();
-                   });
-               }
-           });
-       };
-
-       createWrapper(options.success);
-
-       Proxmox.Utils.API2Request(newopts);
-    },
-
-    initComponent : function() {
-       var me = this;
-
-       if (!me.url) {
-           throw "no url specified";
-       }
-
-       if (me.create) {throw "deprecated parameter, use isCreate";}
-
-       var items = Ext.isArray(me.items) ? me.items : [ me.items ];
-
-       me.items = undefined;
-
-       me.formPanel = Ext.create('Ext.form.Panel', {
-           url: me.url,
-           method: me.method || 'PUT',
-           trackResetOnLoad: true,
-           bodyPadding: 10,
-           border: false,
-           defaults: Ext.apply({}, me.defaults, {
-               border: false
-           }),
-           fieldDefaults: Ext.apply({}, me.fieldDefaults, {
-               labelWidth: 100,
-               anchor: '100%'
-            }),
-           items: items
-       });
-
-       var form = me.formPanel.getForm();
-
-       var submitText;
-       if (me.isCreate) {
-           if (me.isAdd) {
-               submitText = gettext('Add');
-           } else if (me.isRemove) {
-               submitText = gettext('Remove');
-           } else {
-               submitText = gettext('Create');
-           }
-       } else {
-           submitText = gettext('OK');
-       }
-
-       var submitBtn = Ext.create('Ext.Button', {
-           reference: 'submitbutton',
-           text: submitText,
-           disabled: !me.isCreate,
-           handler: function() {
-               me.submit();
-           }
-       });
-
-       var resetBtn = Ext.create('Ext.Button', {
-           text: 'Reset',
-           disabled: true,
-           handler: function(){
-               form.reset();
-           }
-       });
-
-       var set_button_status = function() {
-           var valid = form.isValid();
-           var dirty = form.isDirty();
-           submitBtn.setDisabled(!valid || !(dirty || me.isCreate));
-           resetBtn.setDisabled(!dirty);
-       };
-
-       form.on('dirtychange', set_button_status);
-       form.on('validitychange', set_button_status);
-
-       var colwidth = 300;
-       if (me.fieldDefaults && me.fieldDefaults.labelWidth) {
-           colwidth += me.fieldDefaults.labelWidth - 100;
-       }
-       
-
-       var twoColumn = items[0].column1 || items[0].column2;
-
-       if (me.subject && !me.title) {
-           me.title = Proxmox.Utils.dialog_title(me.subject, me.isCreate, me.isAdd);
-       }
-
-       if (me.isCreate) {
-               me.buttons = [ submitBtn ] ;
-       } else {
-               me.buttons = [ submitBtn, resetBtn ];
-       }
-
-       var onlineHelp = me.onlineHelp || items[0].onlineHelp;
-       if (onlineHelp) {
-           var helpButton = Ext.create('PVE.button.Help');
-           me.buttons.unshift(helpButton, '->');
-           Ext.GlobalEvents.fireEvent('pveShowHelp', onlineHelp);
-       }
-
-       Ext.applyIf(me, {
-           modal: true,
-           width: twoColumn ? colwidth*2 : colwidth,
-           border: false,
-           items: [ me.formPanel ]
-       });
-
-       me.callParent();
-
-       // always mark invalid fields
-       me.on('afterlayout', function() {
-           // on touch devices, the isValid function
-           // triggers a layout, which triggers an isValid
-           // and so on
-           // to prevent this we disable the layouting here
-           // and enable it afterwards
-           me.suspendLayout = true;
-           me.isValid();
-           me.suspendLayout = false;
-       });
-    }
-});
index cf984004853f7fea64a505d32f28944bd823704b..71c2dafbcdf064d60b5aea316a88caf97c7d9f30 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.window.NotesEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
 
     initComponent : function() {
        var me = this;
index 618c95cb5918aab876d08ce97725f9f1bd0fb7d8..9a65da403fd2e208ba3928a6f4f0e8eb88435ddc 100644 (file)
@@ -1,5 +1,5 @@
 Ext.define('PVE.window.Restore', {
-    extend: 'Ext.window.Window', // fixme: PVE.window.Edit?
+    extend: 'Ext.window.Window', // fixme: Proxmox.window.Edit?
 
     resizable: false,
 
index 75bb272cbc97a177da726be039ba16cbdc15831c..dd3ab253b9b44148de7cb4741d1a959a2b498ccc 100644 (file)
@@ -55,7 +55,7 @@ Ext.define('PVE.panel.StartupInputPanel', {
 });
 
 Ext.define('PVE.window.StartupEdit', {
-    extend: 'PVE.window.Edit',
+    extend: 'Proxmox.window.Edit',
     alias: 'widget.pveWindowStartupEdit',
     onlineHelp: undefined,