added change password dialog

This commit is contained in:
Sebastian Sdorra
2011-01-07 13:12:26 +01:00
parent 4a490499f9
commit 2a407f65f7
5 changed files with 430 additions and 13 deletions

View File

@@ -120,7 +120,22 @@ Ext.onReady(function(){
}]
});
var securitySection = null;
if ( state.user.type == 'xml' && state.user.name != 'anonymous' ){
securitySection = {
title: 'Security',
items: [{
label: 'Change Password',
fn: function(){
new Sonia.action.ChangePasswordWindow().show();
}
}]
}
}
if ( admin ){
panel.addSections([{
id: 'navConfig',
title: 'Config',
@@ -140,20 +155,31 @@ Ext.onReady(function(){
addTabPanel('plugins', 'pluginGrid', 'Plugins');
}
}]
},{
title: 'Security',
items: [{
label: 'Users',
fn: function(){
addTabPanel('users', 'userPanel', 'Users');
}
},{
label: 'Groups',
fn: function(){
addTabPanel('groups', 'groupPanel', 'Groups');
}
}]
}]);
if ( securitySection == null ){
securitySection = {
title: 'Security',
items: []
}
}
securitySection.items.push({
label: 'Users',
fn: function(){
addTabPanel('users', 'userPanel', 'Users');
}
});
securitySection.items.push({
label: 'Groups',
fn: function(){
addTabPanel('groups', 'groupPanel', 'Groups');
}
});
}
if ( securitySection != null ){
panel.addSection( securitySection );
}
if ( state.user.name == 'anonymous' ){