mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-07 12:52:40 +02:00
added activate field to user form
This commit is contained in:
@@ -36,6 +36,8 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
mailText: 'Mail',
|
||||
passwordText: 'Password',
|
||||
adminText: 'Administrator',
|
||||
// TODO i18n
|
||||
activeText: 'Active',
|
||||
errorTitleText: 'Error',
|
||||
updateErrorMsgText: 'User update failed',
|
||||
createErrorMsgText: 'User creation failed',
|
||||
@@ -48,6 +50,8 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
passwordHelpText: 'Plain text password of the user.',
|
||||
passwordConfirmHelpText: 'Repeat the password for validation.',
|
||||
adminHelpText: 'An administrator is able to create, modify and delete repositories, groups and users.',
|
||||
// TODO i18n
|
||||
activeHelpText: 'Activate or deactive the user.',
|
||||
|
||||
initComponent: function(){
|
||||
|
||||
@@ -100,6 +104,11 @@ Sonia.user.FormPanel = Ext.extend(Sonia.rest.FormPanel,{
|
||||
name: 'admin',
|
||||
xtype: 'checkbox',
|
||||
helpText: this.adminHelpText
|
||||
},{
|
||||
fieldLabel: this.activeText,
|
||||
name: 'active',
|
||||
xtype: 'checkbox',
|
||||
helpText: this.activeHelpText
|
||||
});
|
||||
|
||||
Ext.apply(this, Ext.apply(this.initialConfig, {items: items}));
|
||||
|
||||
Reference in New Issue
Block a user