diff --git a/src/Makefile b/src/Makefile index cfaffd7..93177fa 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 \ diff --git a/src/window/AuthEditSimple.js b/src/window/AuthEditSimple.js new file mode 100644 index 0000000..f6521bd --- /dev/null +++ b/src/window/AuthEditSimple.js @@ -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, + }, + ], +});