]> git.proxmox.com Git - pmg-gui.git/commitdiff
pbs remote: add namespace support
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 14 May 2022 15:36:23 +0000 (17:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 14 May 2022 15:36:25 +0000 (17:36 +0200)
restructure the existing field positions a bit to make it more
balanced with the new NS field.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/PBSRemoteEdit.js

index b5b22947f86bfa7791e5bb15f1de1ee97e0cb166..5cec21ca0cb5f45b6b121ddde41da58c0fd02468 100644 (file)
@@ -47,16 +47,11 @@ Ext.define('PMG.PBSInputPanel', {
                    allowBlank: false,
                },
                {
-                   xtype: 'proxmoxKVComboBox',
-                   name: 'notify',
-                   fieldLabel: gettext('Notify'),
-                   comboItems: [
-                       ['always', gettext('Always')],
-                       ['error', gettext('Errors')],
-                       ['never', gettext('Never')],
-                   ],
-                   deleteEmpty: false,
-                   emptyText: gettext('Never'),
+                   xtype: 'pmxDisplayEditField',
+                   name: 'namespace',
+                   fieldLabel: gettext('Namespace'),
+                   cbind: { editable: '{isCreate}' },
+                   emptyText: gettext('Root'),
                },
            ],
            column2: [
@@ -81,6 +76,18 @@ Ext.define('PMG.PBSInputPanel', {
                    },
                    fieldLabel: gettext('Password'),
                },
+               {
+                   xtype: 'proxmoxKVComboBox',
+                   name: 'notify',
+                   fieldLabel: gettext('Notify'),
+                   comboItems: [
+                       ['always', gettext('Always')],
+                       ['error', gettext('Errors')],
+                       ['never', gettext('Never')],
+                   ],
+                   deleteEmpty: false,
+                   emptyText: gettext('Never'),
+               },
                {
                    xtype: 'proxmoxcheckbox',
                    name: 'enable',
@@ -88,15 +95,16 @@ Ext.define('PMG.PBSInputPanel', {
                    uncheckedValue: 0,
                    fieldLabel: gettext('Enable'),
                },
+           ],
+           columnB: [
                {
                    xtype: 'proxmoxcheckbox',
                    name: 'include-statistics',
                    checked: true,
                    uncheckedValue: 0,
-                   fieldLabel: gettext('Include Statistics'),
+                   fieldLabel: gettext('Statistics'),
+                   boxLabel: gettext('Include in Backup'),
                },
-           ],
-           columnB: [
                {
                    xtype: 'proxmoxtextfield',
                    name: 'fingerprint',