mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-30 10:35:58 +00:00
window: add panel for editing simple, built-in realms
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
parent
b4b36ef29a
commit
a285fec7e4
@ -98,6 +98,7 @@ JSSRC= \
|
||||
window/AuthEditOpenId.js \
|
||||
window/AuthEditLDAP.js \
|
||||
window/AuthEditAD.js \
|
||||
window/AuthEditSimple.js \
|
||||
window/TfaWindow.js \
|
||||
window/AddTfaRecovery.js \
|
||||
window/AddTotp.js \
|
||||
|
39
src/window/AuthEditSimple.js
Normal file
39
src/window/AuthEditSimple.js
Normal file
@ -0,0 +1,39 @@
|
||||
Ext.define('Proxmox.panel.SimpleRealmInputPanel', {
|
||||
extend: 'Proxmox.panel.InputPanel',
|
||||
xtype: 'pmxAuthSimplePanel',
|
||||
mixins: ['Proxmox.Mixin.CBind'],
|
||||
|
||||
column1: [
|
||||
{
|
||||
xtype: 'pmxDisplayEditField',
|
||||
name: 'realm',
|
||||
cbind: {
|
||||
value: '{realm}',
|
||||
},
|
||||
fieldLabel: gettext('Realm'),
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
fieldLabel: gettext('Default realm'),
|
||||
name: 'default',
|
||||
value: 0,
|
||||
deleteEmpty: true,
|
||||
autoEl: {
|
||||
tag: 'div',
|
||||
'data-qtip': gettext('Set realm as default for login'),
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
column2: [],
|
||||
|
||||
columnB: [
|
||||
{
|
||||
xtype: 'proxmoxtextfield',
|
||||
name: 'comment',
|
||||
fieldLabel: gettext('Comment'),
|
||||
allowBlank: true,
|
||||
deleteEmpty: true,
|
||||
},
|
||||
],
|
||||
});
|
Loading…
Reference in New Issue
Block a user