added activate field to user form

This commit is contained in:
Sebastian Sdorra
2012-05-24 21:31:06 +02:00
parent ba7f975435
commit f63b73c87e

View File

@@ -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}));