{ "name" : "Pman.Tab.MTrackRepos", "parent" : "Pman.Tab.MTrack", "title" : "Pman.Tab.MTrackRepos", "path" : "/home/alan/gitlive/Pman.MTrack/Pman.Tab.MTrackRepos.bjs", "permname" : "", "modOrder" : "001", "strings" : { "ec211f7c20af43e742bf2570c3cb84f9" : "Add", "9e727fdd3aec8274f46685441900280d" : "Project", "7dce122004969d56ae2e0245cb754d35" : "Edit", "73cdcee8881d309dd256134f98347769" : "Repopath", "30269022e9d8f51beaabb52e5d0de2b7" : "Parent", "de1f88f6f7789baf4d35f2919f100fc3" : "Repositories", "97ec8018c492164da252cbaf95f0fa98" : "Shortname", "a4cf31f8bea7da20524198fbe5c0db2a" : "No mtrack_repos found", "f1c61eb7938469f5aa08964c8b2be862" : "Scmtype", "b5a7adde1af5c87d7fd797b6245c2a39" : "Description", "6c47888cc8867737f167632508b2f58b" : "Displaying mtrack_repos{0} - {1} of {2}" }, "items" : [ { "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, "fitToframe" : true, "background" : true, "region" : "center", "title" : "Repositories", "xtype" : "GridPanel", "fitContainer" : true, "$ xns" : "Roo", "tableName" : "mtrack_repos", "items" : [ { "listeners" : { "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) { return; }\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n", "|render" : "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.MTrackRepos;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}" }, "autoExpandColumn" : "shortname", "xtype" : "Grid", "loadMask" : true, "$ xns" : "Roo.grid", "* prop" : "grid", "items" : [ { "remoteSort" : true, "xtype" : "Store", "$ sortInfo" : "{ field : 'shortname', direction: 'ASC' }", "$ xns" : "Roo.data", "* prop" : "dataSource", "items" : [ { "$ url" : "baseURL + '/Roo/mtrack_repos.php'", "method" : "GET", "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'shortname',\n 'type': 'string'\n },\n {\n 'name': 'scmtype',\n 'type': 'string'\n },\n {\n 'name': 'repopath',\n 'type': 'string'\n },\n {\n 'name': 'browserurl',\n 'type': 'string'\n },\n {\n 'name': 'browsertype',\n 'type': 'string'\n },\n {\n 'name': 'description',\n 'type': 'string'\n },\n {\n 'name': 'serverurl',\n 'type': 'string'\n },\n {\n 'name': 'parent',\n 'type': 'string'\n },\n {\n 'name': 'clonedfrom',\n 'type': 'int'\n },\n {\n 'name': 'project_id',\n 'type': 'int'\n }\n]", "* prop" : "reader", "totalProperty" : "total" } ] }, { "pageSize" : 25, "xtype" : "PagingToolbar", "emptyMsg" : "No mtrack_repos found", "$ xns" : "Roo", "displayInfo" : true, "displayMsg" : "Displaying mtrack_repos{0} - {1} of {2}", "* prop" : "footer" }, { "xtype" : "Toolbar", "$ xns" : "Roo", "* prop" : "toolbar", "items" : [ { "listeners" : { "|click" : "function()\n{\n if (!_this.dialog) { return; }\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n" }, "text" : "Add", "xtype" : "Button", "cls" : "x-btn-text-icon", "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'", "$ xns" : "Roo.Toolbar" }, { "listeners" : { "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) { return; }\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('reload');\n }); \n \n}\n" }, "text" : "Edit", "xtype" : "Button", "cls" : "x-btn-text-icon", "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'", "$ xns" : "Roo.Toolbar" } ] }, { "xtype" : "ColumnModel", "header" : "Project", "width" : 150, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", "dataIndex" : "project_id_name" }, { "xtype" : "ColumnModel", "width" : 200, "header" : "Shortname", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", "dataIndex" : "shortname" }, { "xtype" : "ColumnModel", "header" : "Scmtype", "width" : 70, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", "dataIndex" : "scmtype" }, { "xtype" : "ColumnModel", "header" : "Repopath", "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", "dataIndex" : "repopath" }, { "xtype" : "ColumnModel", "width" : 200, "header" : "Description", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", "dataIndex" : "description" }, { "xtype" : "ColumnModel", "header" : "Parent", "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", "dataIndex" : "parent" } ] } ] } ] }