3 "name": "MTrackWeb.Layout",
6 "path": "/home/alan/gitlive/web.mtrack/MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Layout.bjs",
10 "activate": "function (_self)\n{\n \n}"
12 "xtype": "NestedLayoutPanel",
17 "xtype": "BorderLayout",
24 "xtype": "LayoutRegion",
29 "alwaysShowTabs": true,
31 "xtype": "LayoutRegion",
40 "|xns": "Roo.Toolbar",
50 "beforeselect": "function (combo, rec, index)\n{\n // this should post to the system, - to register active Project..\n // it's not really needed in new version... but done for compat.\n // at present..\n Roo.Ajax.request( {\n method: 'POST',\n url : baseURL + '/Projects/' + rec.data.id,\n success : function (data) {\n // then, it should refresh the current active tab..\n MTrack.ajaxLoad( MTrack.currentURL);\n }\n }); \n \n}",
51 "render": "function (_self)\n{\n \n _this.projectCombo = _self;\n // BC..\n MTrack.projectCombo = _self;\n \n // set the default value to our current project..\n this.setFromData({\n id : project_id,\n name : project_name\n });\n}"
55 "displayField": "name",
57 "emptyText": "Select Project",
58 "forceSelection": true,
60 "loadingText": "Searching...",
62 "qtip": "Select Project",
63 "selectOnFocus": true,
64 "tpl": "<div class=\"x-grid-cell-text x-btn\">{name} - <b>{code}</b> </div>",
65 "triggerAction": "all",
74 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
79 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
86 "|url": "baseURL + '/Roo/Projects.php'",
93 "totalProperty": "total",
94 "xtype": "JsonReader",
95 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},\"name\",\"code\"]",
103 "|xns": "Roo.Toolbar",
108 "specialkey": "function (_self, e)\n{\n if (e.getKey() == 13) {\n // search!\n }\n}"
110 "emptyText": "Search (to be done..)",
112 "xtype": "TextField",
118 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
119 "|xns": "Roo.Toolbar"
122 "|xns": "Roo.Toolbar",
127 "click": "function (_self, e)\n{\n var bt = this;\n if (!Pman.Login.authUser.id) { \n Pman.Login.show(false, function() {\n bt.setText('Logout');\n Roo.select('.banner-username').first().update(\n String.format('You are logged in as {0} <{1}>',\n Pman.Login.authUser.name,\n Pman.Login.authUser.email));\n \n \n // set the default value to our current project..\n MTrack.projectCombo.setFromData({\n id : Pman.Login.authUser.project.id,\n name : Pman.Login.authUser.project.name\n });\n \n MTrack.ajaxLoad( MTrack.currentURL);\n //document.location = baseURL + '/Report/1?ts=' + Math.random();\n // reload the project list!??\n // reload the active page\n });\n } else {\n Roo.MessageBox.confirm(\"Logout\", \n \"Are you sure you want to Log out?\",\n function(r) {\n if (r!='yes') {\n return;\n }\n \n Pman.Login.logout();\n }\n );\n // should for a reload..\n }\n}",
128 "render": "function (_self)\n{\n if (typeof(Pman) == 'undefined') {\n return;\n }\n \n // if we are logged in.. change stuff..\n if (!Pman.Login.authUser.id) {\n // not logged in..\n return;\n }\n // logged in..\n this.el.child(\"button:first\").setStyle(\n 'background-image', 'url(' + rootURL + '/Pman/templates/images/logout.gif)');\n this.setText('Logout');\n Roo.select('.banner-username').first().update(\n String.format('You are logged in as {0} <{1}>',\n Pman.Login.authUser.name,\n Pman.Login.authUser.email));\n // change the icon..\n \n}"
130 "cls": "x-btn-text-icon",
132 "xtype": "SplitButton",
133 "|icon": "rootURL + '/Pman/templates/images/lock.gif'",
134 "|xns": "Roo.Toolbar",
142 "text": "Request Account",
147 "text": "Send Invite to a Friend",
157 "render": "function (_self)\n{\n _this.changePassword = _self;\n}"
159 "text": "Change Password",
175 "xtype": "LayoutRegion",
180 "xtype": "ContentPanel",
181 "|content": " '<div class=\"banner-username\"></div>' + \n '<div id=\"banner\">' +\n '<a href=\"' + baseURL + '\"><img style=\"float: left;margin-right: 10px;\" src=\"' +\n '/Roojscom/templates/images/roojsorg_logo-55.png\" width=\"150\" height=\"55\"></a>' +\n '<div class=\"banner-title\">Project Tracker</div>'+\n '</div>'\n \n \n ",
186 "xtype": "ContentPanel",
187 "|content": "' <div id=\"footer\">' +\n '<div class=\"navfoot\">' +\n 'Powered by <a href=\"http://www.roojs.com/mtrack/index.php/Browse/default/web.mtrack\">web.mtrack</a>' +\n ' based on Wez\\'s ' +\n '<a href=\"http://bitbucket.org/wez/mtrack/\">mtrack</a>' +\n '</div>' +\n '</div>' ",