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,
44 xns : Roo.bootstrap.layout,
45 '|xns' : 'Roo.bootstrap.layout'
52 xns : Roo.bootstrap.layout,
53 '|xns' : 'Roo.bootstrap.layout'
60 xns : Roo.bootstrap.panel,
61 '|xns' : 'Roo.bootstrap.panel',
64 xtype : 'NavHeaderbar',
66 brand : '<img cls="header-logo" src="' + Roo.BLANK_IMAGE_URL + '">',
67 cls : 'headroom animated slideDown no-srButton',
68 desktopCenter : false,
70 position : 'fixed-top',
72 style : 'padding-bottom:0px;',
74 '|xns' : 'Roo.bootstrap',
79 style : 'margin-top:0px;margin-bottom:0px;margin-right:22px;',
82 '|xns' : 'Roo.bootstrap',
86 html : Pman.Login.authUser.name + '<span style="margin-left: 5px;" class="badge badge-primary"></span>',
88 preventDefault : true,
89 updateBadge : function() { },
91 render : function (_self)
93 _this.user_box = this;
95 this.el.setVisibilityMode(Roo.Element.DISPLAY);
101 '|xns' : 'Roo.bootstrap',
104 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'
189 preventDefault : true,
191 childrenrendered : function (_self)
193 _this.super_admin_btn.hide();
195 if(!Pman.Login.authUser.role.length && Pman.Login.authUser.groups.indexOf('Administrators') * 1 != -1) {
196 _this.super_admin_btn.show();
201 '|xns' : 'Roo.bootstrap',
206 '|xns' : 'Roo.bootstrap',
212 '|xns' : 'Roo.bootstrap',
216 html : _this._strings['7b7bc2512ee1fedcd76bdc68926d4f7b'] /* Administrator */,
217 style : 'padding: 0px; margin-bottom: 10px; text-decoration: none; color:#777;',
220 click : function (_self, e)
222 window.open(baseURL + '?_super_admin=1','_self');
224 render : function (_self)
226 _this.super_admin_btn = this;
231 '|xns' : 'Roo.bootstrap'
240 '|xns' : 'Roo.bootstrap',
248 '|xns' : 'Roo.bootstrap',
252 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
253 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
254 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
255 style : 'text-transform:none;',
262 Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {
263 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'