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 '0323de4f66a1700e2173e9bcdce02715' :"Logout",
11 '8f1e77e0d2be21da93cd4d9a939148f7' :"Change Password",
12 '54d2e870aca5e99bf69f0ee1d494c3b3' :"Update profile",
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)
32 xns : Roo.bootstrap.layout,
33 '|xns' : 'Roo.bootstrap.layout',
36 alwaysShowTabs : true,
38 xns : Roo.bootstrap.layout,
39 '|xns' : 'Roo.bootstrap.layout'
45 xns : Roo.bootstrap.layout,
46 '|xns' : 'Roo.bootstrap.layout'
53 xns : Roo.bootstrap.panel,
54 '|xns' : 'Roo.bootstrap.panel',
57 xtype : 'NavHeaderbar',
59 brand : '<img src="' + appLogo ? appLogo : Roo.BLANK_IMAGE_URL + '">',
61 cls : 'headroom animated slideDown container no-srButton',
64 position : 'static-top',
66 style : 'padding-bottom:0px;',
68 '|xns' : 'Roo.bootstrap',
73 style : 'margin-top:0px;margin-bottom:0px;',
76 '|xns' : 'Roo.bootstrap',
80 html : Pman.Login.authUser.name,
82 preventDefault : true,
84 render : function (_self)
86 this.el.setVisibilityMode(Roo.Element.DISPLAY);
94 '|xns' : 'Roo.bootstrap',
99 show : function (_self)
101 var width = Roo.lib.Dom.getViewWidth();
103 var xy = this.el.getXY();
108 this.el.setStyle('width', width + 'px');
113 '|xns' : 'Roo.bootstrap',
119 preventDefault : true,
121 '|xns' : 'Roo.bootstrap',
126 '|xns' : 'Roo.bootstrap',
132 '|xns' : 'Roo.bootstrap',
137 '|xns' : 'Roo.bootstrap',
142 style : 'padding:0px 10px;',
144 render : function (_self)
146 this.el.setVisibilityMode(Roo.Element.DISPLAY);
151 typeof(Hydra.authUser) == 'undefined' ||
152 typeof(Hydra.authUser.profile_photo) != 'object' ||
153 Hydra.authUser.profile_photo.id * 1 < 1
160 '|xns' : 'Roo.bootstrap',
164 cls : 'fa fa-user fa-4x',
165 preventDefault : true,
170 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
174 var type = Hydra.authUser.person_type.toLowerCase();
176 window.location = baseURL + '/' + type.charAt(0).toUpperCase() + type.slice(1) + 'Main';
180 '|xns' : 'Roo.bootstrap'
187 style : 'padding:0px 10px;',
189 render : function (_self)
191 this.el.setVisibilityMode(Roo.Element.DISPLAY);
196 typeof(Hydra.authUser) == 'undefined' ||
197 typeof(Hydra.authUser.profile_photo) != 'object' ||
198 Hydra.authUser.profile_photo.id * 1 < 1
205 '|xns' : 'Roo.bootstrap',
209 style : 'cursor:pointer;',
210 tooltip : 'View Dashboard',
214 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
218 var type = Hydra.authUser.person_type.toLowerCase();
220 window.location = baseURL + '/' + type.charAt(0).toUpperCase() + type.slice(1) + 'Main';
222 render : function (_self)
224 this.el.setVisibilityMode(Roo.Element.DISPLAY);
229 typeof(Hydra.authUser) == 'undefined' ||
230 typeof(Hydra.authUser.profile_photo) != 'object' ||
231 Hydra.authUser.profile_photo.id * 1 < 1
237 this.el.attr('src', baseURL + '/Images/Thumb/50/' + Hydra.authUser.profile_photo.id + '/' + Hydra.authUser.profile_photo.filename);
242 '|xns' : 'Roo.bootstrap'
254 '|xns' : 'Roo.bootstrap',
259 '|xns' : 'Roo.bootstrap',
264 style : 'color:#333;',
266 render : function (_self)
268 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
272 this.el.dom.innerHTML = '<b>' + Hydra.authUser.firstname + ' ' + Hydra.authUser.lastname + '</b>';
277 '|xns' : 'Roo.bootstrap'
282 style : 'color:#333;',
284 render : function (_self)
286 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
290 this.el.dom.innerHTML = Hydra.authUser.email;
295 '|xns' : 'Roo.bootstrap'
300 style : 'color:#333;',
302 '|xns' : 'Roo.bootstrap',
307 html : _this._strings['54d2e870aca5e99bf69f0ee1d494c3b3'] /* Update profile */,
308 preventDefault : true,
314 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
319 window.location = baseURL + '/Talent';
321 render : function (_self)
323 this.el.setVisibilityMode(Roo.Element.DISPLAY);
328 typeof(Hydra.authUser) == 'undefined' ||
329 typeof(Hydra.authUser.person_type) == 'undefined' ||
330 Hydra.authUser.person_type != 'TALENT'
339 '|xns' : 'Roo.bootstrap'
355 preventDefault : true,
357 '|xns' : 'Roo.bootstrap',
362 '|xns' : 'Roo.bootstrap',
370 '|xns' : 'Roo.bootstrap',
374 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
375 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
376 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
377 style : 'text-transform:none;',
381 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
387 Hydra.Dialog.ChangePassword.show({}, function(res) {
388 Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
393 '|xns' : 'Roo.bootstrap'
401 style : 'text-align: right;',
404 '|xns' : 'Roo.bootstrap',
408 html : _this._strings['0323de4f66a1700e2173e9bcdce02715'] /* Logout */,
409 style : 'text-transform:none;',
413 window.onbeforeunload = false;
415 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
420 url : baseURL + '/Login',
427 location.href = baseURL;
434 '|xns' : 'Roo.bootstrap'
452 '|xns' : 'Roo.bootstrap',
457 imgResponsive : true,
458 style : 'height: 50px;',
460 render : function (_self)
463 _self.el.dom.src = appLogo;
468 '|xns' : 'Roo.bootstrap'