"permname" : "",
"modOrder" : "001",
"strings" : {
+ "7b7bc2512ee1fedcd76bdc68926d4f7b" : "Administrator",
"0323de4f66a1700e2173e9bcdce02715" : "Logout",
- "617114bd6ef10884239510062dffa933" : "Your password has been changed",
"8f1e77e0d2be21da93cd4d9a939148f7" : "Change Password",
+ "617114bd6ef10884239510062dffa933" : "Your password has been changed",
"24efa7ee4511563b16144f39706d594f" : "Notice"
},
"items" : [
{
+ "listeners" : {
+ "render" : "function (_self)\n{\n\n}"
+ },
"xtype" : "Border",
"$ el" : "document.body",
"$ xns" : "Roo.bootstrap.layout",
{
"String tabPosition" : "top",
"xtype" : "Region",
+ "string cls" : "pman-admin-center",
"$ xns" : "Roo.bootstrap.layout",
"Boolean alwaysShowTabs" : true,
"* prop" : "center"
"items" : [
{
"String position" : "fixed-top",
- "String cls" : "headroom animated slideDown no-srButton",
+ "String cls" : "headroom animated slideDown no-srButton pman-admin-header",
"Boolean srButton" : true,
"bool autohide" : true,
"xtype" : "NavHeaderbar",
"Boolean inverse" : false,
"Boolean desktopCenter" : false,
- "$ String brand" : "'<img cls=\"header-logo\" src=\"' + (appLogo ? appLogo : Roo.BLANK_IMAGE_URL) + '\">'",
+ "$ String brand" : "'<img cls=\"header-logo\" src=\"' + Roo.BLANK_IMAGE_URL + '\">'",
"$ xns" : "Roo.bootstrap",
- "String style" : "padding-bottom:0px;",
"items" : [
{
"String type" : "nav",
"xtype" : "NavGroup",
"String align" : "right",
"$ xns" : "Roo.bootstrap",
- "String style" : "margin-top:0px;margin-bottom:0px;",
"items" : [
{
"listeners" : {
- "render" : "function (_self)\n{\n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n \n \n this.el.show();\n}"
+ "render" : "function (_self)\n{\n _this.user_box = this;\n \n this.el.setVisibilityMode(Roo.Element.DISPLAY);\n \n this.el.show();\n}"
},
"Boolean preventDefault" : true,
+ "| function updateBadge" : "function() { }",
"xtype" : "NavItem",
- "$ html" : "Pman.Login.authUser.name",
+ "$ html" : "Pman.Login.authUser.name + '<span style=\"margin-left: 5px;\" class=\"badge badge-primary\"></span>'",
"$ xns" : "Roo.bootstrap",
"String icon" : "fa fa-user",
"items" : [
"String cls" : "user-menu",
"xtype" : "Menu",
"$ xns" : "Roo.bootstrap",
+ "bool hideTrigger" : true,
"* prop" : "menu",
"items" : [
{
"$ xns" : "Roo.bootstrap",
"items" : [
{
- "Number md" : 9,
- "Number mdoff" : 3,
+ "Number md" : 12,
"xtype" : "Column",
"$ xns" : "Roo.bootstrap",
"items" : [
"items" : [
{
"listeners" : {
- "render" : "function (_self)\n{\n \n this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';\n \n}"
+ "render" : "function (_self)\n{\n this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';\n \n}"
},
"Number md" : 12,
+ "String cls" : "text-primary",
"xtype" : "Column",
- "$ xns" : "Roo.bootstrap",
- "String style" : "color:#333;"
+ "$ xns" : "Roo.bootstrap"
},
{
"listeners" : {
"Number md" : 12,
"xtype" : "Column",
"$ xns" : "Roo.bootstrap",
- "String style" : "color:#333;"
+ "String style" : "color:#777;"
+ },
+ {
+ "Number md" : 12,
+ "xtype" : "Column",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.super_admin_btn = this;\n \n}",
+ "click" : "function (_self, e)\n{\n if(window.location.href.indexOf('_super_admin=1') * 1 != -1) {\n window.open(baseURL,'_self');\n return;\n }\n \n window.open(baseURL + '?_super_admin=1','_self');\n}"
+ },
+ "String weight" : "link",
+ "xtype" : "Button",
+ "$ xns" : "Roo.bootstrap",
+ "String html" : "Administrator",
+ "String style" : "padding: 0px;text-decoration: none; color:#777;"
+ }
+ ]
}
]
}
]
},
{
+ "listeners" : {
+ "childrenrendered" : "function (_self)\n{\n _this.super_admin_btn.hide();\n\n if(Pman.Login.authUser.groups.indexOf('Administrators') * 1 != -1) {\n _this.super_admin_btn.show();\n }\n}"
+ },
"String cls" : "user-footer",
"Boolean preventDefault" : true,
"xtype" : "MenuItem",
"items" : [
{
"listeners" : {
- "click" : "function (e)\n{\n if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){\n return;\n }\n \n var _self = this;\n \n Hydra.Dialog.ChangePassword.show({}, function(res) {\n Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);\n });\n}"
+ "click" : "function (e)\n{\n var _self = this;\n \n Pman.Dialog.BAdminPassword.show(\n {},\n function(res) {\n Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);\n }\n );\n \n}"
},
"xtype" : "Button",
"string _change_passwd_success_body" : "Your password has been changed",
"items" : [
{
"listeners" : {
- "click" : "function (e)\n{\n window.onbeforeunload = false;\n \n if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){\n return;\n }\n \n Roo.Ajax.request({\n url : baseURL + '/Login',\n method: 'POST',\n params : { \n logout : 1\n },\n success : function()\n {\n location.href = baseURL;\n }\n });\n\n}"
+ "click" : "function (e)\n{\n window.onbeforeunload = false;\n \n \n Roo.Ajax.request({\n url : baseURL + '/Login',\n method: 'POST',\n params : { \n logout : 1\n },\n success : function()\n {\n location.href = baseURL;\n }\n });\n\n}"
},
"xtype" : "Button",
"$ xns" : "Roo.bootstrap",