1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 Pman.Tab = new Roo.XComponent({
10 '7b7bc2512ee1fedcd76bdc68926d4f7b' :"Administrator",
11 '0323de4f66a1700e2173e9bcdce02715' :"Logout",
12 '8f1e77e0d2be21da93cd4d9a939148f7' :"Change Password",
13 '617114bd6ef10884239510062dffa933' :"Your password has been changed",
14 '24efa7ee4511563b16144f39706d594f' :"Notice"
17 part : ["BAdmin", "Tab" ],
18 order : '001-Pman.Tab',
21 name : "unnamed module",
24 _tree : function(_data)
33 render : function (_self)
38 xns : Roo.bootstrap.layout,
39 '|xns' : 'Roo.bootstrap.layout',
42 alwaysShowTabs : true,
43 cls : 'pman-admin-center',
45 xns : Roo.bootstrap.layout,
46 '|xns' : 'Roo.bootstrap.layout'
53 xns : Roo.bootstrap.layout,
54 '|xns' : 'Roo.bootstrap.layout'
61 xns : Roo.bootstrap.panel,
62 '|xns' : 'Roo.bootstrap.panel',
65 xtype : 'NavHeaderbar',
67 brand : '<img cls="header-logo" src="' + Roo.BLANK_IMAGE_URL + '">',
68 cls : 'headroom animated slideDown no-srButton pman-admin-header',
69 desktopCenter : false,
71 position : 'fixed-top',
74 '|xns' : 'Roo.bootstrap',
81 '|xns' : 'Roo.bootstrap',
85 html : Pman.Login.authUser.name + '<span style="margin-left: 5px;" class="badge badge-primary"></span>',
87 preventDefault : true,
88 updateBadge : function() { },
90 render : function (_self)
92 _this.user_box = this;
94 this.el.setVisibilityMode(Roo.Element.DISPLAY);
100 '|xns' : 'Roo.bootstrap',
103 allowDomMove : false,
107 show : function (_self)
109 var width = Roo.lib.Dom.getViewWidth();
111 var xy = this.el.getXY();
112 this.el.setStyle('position', 'absolute');
117 this.el.setStyle('width', width + 'px');
122 '|xns' : 'Roo.bootstrap',
128 preventDefault : true,
130 '|xns' : 'Roo.bootstrap',
135 '|xns' : 'Roo.bootstrap',
141 '|xns' : 'Roo.bootstrap',
146 '|xns' : 'Roo.bootstrap',
150 cls : 'text-primary',
153 render : function (_self)
155 this.el.dom.innerHTML = '<b>' + Pman.Login.authUser.name + '</b>';
160 '|xns' : 'Roo.bootstrap'
165 style : 'color:#777;',
167 render : function (_self)
170 this.el.dom.innerHTML = Pman.Login.authUser.email;
175 '|xns' : 'Roo.bootstrap'
181 '|xns' : 'Roo.bootstrap',
185 html : _this._strings['7b7bc2512ee1fedcd76bdc68926d4f7b'] /* Administrator */,
186 style : 'padding: 0px;text-decoration: none; color:#777;',
189 click : function (_self, e)
191 if(window.location.href.indexOf('_super_admin=1') * 1 != -1) {
192 window.open(baseURL,'_self');
196 window.open(baseURL + '?_super_admin=1','_self');
198 render : function (_self)
200 _this.super_admin_btn = this;
205 '|xns' : 'Roo.bootstrap'
221 preventDefault : true,
223 childrenrendered : function (_self)
225 _this.super_admin_btn.hide();
227 if(Pman.Login.authUser.groups.indexOf('Administrators') * 1 != -1) {
228 _this.super_admin_btn.show();
233 '|xns' : 'Roo.bootstrap',
238 '|xns' : 'Roo.bootstrap',
246 '|xns' : 'Roo.bootstrap',
250 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
251 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
252 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
253 style : 'text-transform:none;',
259 Pman.Dialog.BAdminPassword.show(
262 Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
269 '|xns' : 'Roo.bootstrap'
277 style : 'text-align: right;',
280 '|xns' : 'Roo.bootstrap',
284 html : _this._strings['0323de4f66a1700e2173e9bcdce02715'] /* Logout */,
285 style : 'text-transform:none;',
289 window.onbeforeunload = false;
293 url : baseURL + '/Login',
300 location.href = baseURL;
307 '|xns' : 'Roo.bootstrap'