From 7fb4767d9ce66bf2417e82721fb2bb124daeedec Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 4 Apr 2019 11:15:46 +0200 Subject: [PATCH] ui: user edit: move TFA key IDs field to advanced section Signed-off-by: Thomas Lamprecht --- www/manager6/dc/UserEdit.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/www/manager6/dc/UserEdit.js b/www/manager6/dc/UserEdit.js index 66950435..6729582c 100644 --- a/www/manager6/dc/UserEdit.js +++ b/www/manager6/dc/UserEdit.js @@ -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) {