]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
ui: user edit: move TFA key IDs field to advanced section
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Apr 2019 09:15:46 +0000 (11:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 4 Apr 2019 09:26:12 +0000 (11:26 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/UserEdit.js

index 6695043552810ae08fec6762bf468c2598b6ab18..6729582c6501f12b8f106b1076b8f7e63004aa16 100644 (file)
@@ -120,19 +120,6 @@ Ext.define('PVE.dc.UserEdit', {
            }
        ];
 
-       var columnB = [
-           {
-               xtype: 'textfield',
-               name: 'comment',
-               fieldLabel: gettext('Comment')
-           },
-           {
-               xtype: 'textfield',
-               name: 'keys',
-               fieldLabel: gettext('Key IDs')
-           }
-       ];
         if (me.isCreate) {
             column1.splice(1,0,{
                 xtype: 'pveRealmComboBox',
@@ -154,7 +141,20 @@ Ext.define('PVE.dc.UserEdit', {
        var ipanel = Ext.create('Proxmox.panel.InputPanel', {
            column1: column1,
            column2: column2,
-           columnB: columnB,
+           columnB: [
+               {
+                   xtype: 'textfield',
+                   name: 'comment',
+                   fieldLabel: gettext('Comment')
+               },
+           ],
+           advancedItems: [
+               {
+                   xtype: 'textfield',
+                   name: 'keys',
+                   fieldLabel: gettext('Key IDs')
+               }
+           ],
            onGetValues: function(values) {
                // hack: ExtJS datefield does not submit 0, so we need to set that
                if (!values.expire) {