mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-29 14:29:21 +00:00
ui: user edit: move TFA key IDs field to advanced section
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4c86db122c
commit
7fb4767d9c
@ -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) {
|
if (me.isCreate) {
|
||||||
column1.splice(1,0,{
|
column1.splice(1,0,{
|
||||||
xtype: 'pveRealmComboBox',
|
xtype: 'pveRealmComboBox',
|
||||||
@ -154,7 +141,20 @@ Ext.define('PVE.dc.UserEdit', {
|
|||||||
var ipanel = Ext.create('Proxmox.panel.InputPanel', {
|
var ipanel = Ext.create('Proxmox.panel.InputPanel', {
|
||||||
column1: column1,
|
column1: column1,
|
||||||
column2: column2,
|
column2: column2,
|
||||||
columnB: columnB,
|
columnB: [
|
||||||
|
{
|
||||||
|
xtype: 'textfield',
|
||||||
|
name: 'comment',
|
||||||
|
fieldLabel: gettext('Comment')
|
||||||
|
},
|
||||||
|
],
|
||||||
|
advancedItems: [
|
||||||
|
{
|
||||||
|
xtype: 'textfield',
|
||||||
|
name: 'keys',
|
||||||
|
fieldLabel: gettext('Key IDs')
|
||||||
|
}
|
||||||
|
],
|
||||||
onGetValues: function(values) {
|
onGetValues: function(values) {
|
||||||
// hack: ExtJS datefield does not submit 0, so we need to set that
|
// hack: ExtJS datefield does not submit 0, so we need to set that
|
||||||
if (!values.expire) {
|
if (!values.expire) {
|
||||||
|
Loading…
Reference in New Issue
Block a user