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",
13 "|getProjectId": "function() {\n return MTrack.projectCombo.getValue();\n}\n",
18 "xtype": "BorderLayout",
25 "xtype": "LayoutRegion",
30 "alwaysShowTabs": true,
32 "xtype": "LayoutRegion",
41 "|xns": "Roo.Toolbar",
51 "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}",
52 "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}"
56 "displayField": "name",
58 "emptyText": "Select Project",
59 "forceSelection": true,
61 "loadingText": "Searching...",
63 "qtip": "Select Project",
64 "selectOnFocus": true,
65 "tpl": "<div class=\"x-grid-cell-text x-btn\">{name} - <b>{code}</b> </div>",
66 "triggerAction": "all",
75 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
80 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
87 "|url": "baseURL + '/Roo/Projects.php'",
94 "totalProperty": "total",
95 "xtype": "JsonReader",
96 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},\"name\",\"code\"]",
104 "|xns": "Roo.Toolbar",
109 "specialkey": "function (_self, e)\n{\n if (e.getKey() == 13) {\n // search!\n }\n}"
111 "emptyText": "Search (to be done..)",
113 "xtype": "TextField",
119 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
120 "|xns": "Roo.Toolbar"
123 "|xns": "Roo.Toolbar",
128 "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}",
129 "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}"
131 "cls": "x-btn-text-icon",
133 "xtype": "SplitButton",
134 "|icon": "rootURL + '/Pman/templates/images/lock.gif'",
135 "|xns": "Roo.Toolbar",
143 "text": "Request Account",
148 "text": "Send Invite to a Friend",
158 "render": "function (_self)\n{\n _this.changePassword = _self;\n}"
160 "text": "Change Password",
176 "xtype": "LayoutRegion",
181 "xtype": "ContentPanel",
182 "|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 ",
187 "xtype": "ContentPanel",
188 "|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>' ",