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="' + if(appLogo) {
60 _self.el.dom.src = appLogo;
63 cls : 'headroom animated slideDown container no-srButton',
66 position : 'static-top',
68 style : 'padding-bottom:0px;',
70 '|xns' : 'Roo.bootstrap',
75 style : 'margin-top:0px;margin-bottom:0px;',
78 '|xns' : 'Roo.bootstrap',
82 html : Pman.Login.authUser.name,
84 preventDefault : true,
86 render : function (_self)
88 this.el.setVisibilityMode(Roo.Element.DISPLAY);
92 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
100 '|xns' : 'Roo.bootstrap',
105 show : function (_self)
107 var width = Roo.lib.Dom.getViewWidth();
109 var xy = this.el.getXY();
114 this.el.setStyle('width', width + 'px');
119 '|xns' : 'Roo.bootstrap',
125 preventDefault : true,
127 '|xns' : 'Roo.bootstrap',
132 '|xns' : 'Roo.bootstrap',
138 '|xns' : 'Roo.bootstrap',
143 '|xns' : 'Roo.bootstrap',
148 style : 'padding:0px 10px;',
150 render : function (_self)
152 this.el.setVisibilityMode(Roo.Element.DISPLAY);
157 typeof(Hydra.authUser) == 'undefined' ||
158 typeof(Hydra.authUser.profile_photo) != 'object' ||
159 Hydra.authUser.profile_photo.id * 1 < 1
166 '|xns' : 'Roo.bootstrap',
170 cls : 'fa fa-user fa-4x',
171 preventDefault : true,
176 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
180 var type = Hydra.authUser.person_type.toLowerCase();
182 window.location = baseURL + '/' + type.charAt(0).toUpperCase() + type.slice(1) + 'Main';
186 '|xns' : 'Roo.bootstrap'
193 style : 'padding:0px 10px;',
195 render : function (_self)
197 this.el.setVisibilityMode(Roo.Element.DISPLAY);
202 typeof(Hydra.authUser) == 'undefined' ||
203 typeof(Hydra.authUser.profile_photo) != 'object' ||
204 Hydra.authUser.profile_photo.id * 1 < 1
211 '|xns' : 'Roo.bootstrap',
215 style : 'cursor:pointer;',
216 tooltip : 'View Dashboard',
220 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
224 var type = Hydra.authUser.person_type.toLowerCase();
226 window.location = baseURL + '/' + type.charAt(0).toUpperCase() + type.slice(1) + 'Main';
228 render : function (_self)
230 this.el.setVisibilityMode(Roo.Element.DISPLAY);
235 typeof(Hydra.authUser) == 'undefined' ||
236 typeof(Hydra.authUser.profile_photo) != 'object' ||
237 Hydra.authUser.profile_photo.id * 1 < 1
243 this.el.attr('src', baseURL + '/Images/Thumb/50/' + Hydra.authUser.profile_photo.id + '/' + Hydra.authUser.profile_photo.filename);
248 '|xns' : 'Roo.bootstrap'
260 '|xns' : 'Roo.bootstrap',
265 '|xns' : 'Roo.bootstrap',
270 style : 'color:#333;',
272 render : function (_self)
274 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
278 this.el.dom.innerHTML = '<b>' + Hydra.authUser.firstname + ' ' + Hydra.authUser.lastname + '</b>';
283 '|xns' : 'Roo.bootstrap'
288 style : 'color:#333;',
290 render : function (_self)
292 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
296 this.el.dom.innerHTML = Hydra.authUser.email;
301 '|xns' : 'Roo.bootstrap'
306 style : 'color:#333;',
308 '|xns' : 'Roo.bootstrap',
313 html : _this._strings['54d2e870aca5e99bf69f0ee1d494c3b3'] /* Update profile */,
314 preventDefault : true,
320 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
325 window.location = baseURL + '/Talent';
327 render : function (_self)
329 this.el.setVisibilityMode(Roo.Element.DISPLAY);
334 typeof(Hydra.authUser) == 'undefined' ||
335 typeof(Hydra.authUser.person_type) == 'undefined' ||
336 Hydra.authUser.person_type != 'TALENT'
345 '|xns' : 'Roo.bootstrap'
361 preventDefault : true,
363 '|xns' : 'Roo.bootstrap',
368 '|xns' : 'Roo.bootstrap',
376 '|xns' : 'Roo.bootstrap',
380 _change_passwd_success_body : _this._strings['617114bd6ef10884239510062dffa933'] /* Your password has been changed */,
381 _change_passwd_success_title : _this._strings['24efa7ee4511563b16144f39706d594f'] /* Notice */,
382 html : _this._strings['8f1e77e0d2be21da93cd4d9a939148f7'] /* Change Password */,
383 style : 'text-transform:none;',
387 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
393 Hydra.Dialog.ChangePassword.show({}, function(res) {
394 Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
399 '|xns' : 'Roo.bootstrap'
407 style : 'text-align: right;',
410 '|xns' : 'Roo.bootstrap',
414 html : _this._strings['0323de4f66a1700e2173e9bcdce02715'] /* Logout */,
415 style : 'text-transform:none;',
419 window.onbeforeunload = false;
421 if(typeof(Hydra.authUser) == 'undefined' || !Hydra.authUser || Hydra.authUser.id * 1 < 1){
426 url : baseURL + '/Login',
433 location.href = baseURL;
440 '|xns' : 'Roo.bootstrap'
458 '|xns' : 'Roo.bootstrap',
463 imgResponsive : true,
464 style : 'height: 50px;',
466 render : function (_self)
469 _self.el.dom.src = appLogo;
474 '|xns' : 'Roo.bootstrap'