php warnings
[Pman.MTrack] / Pman.Tab.MTrackRepos.bjs
1 {
2  "name" : "Pman.Tab.MTrackRepos",
3  "parent" : "Pman.Tab.MTrack",
4  "title" : "Pman.Tab.MTrackRepos",
5  "path" : "/home/alan/gitlive/Pman.MTrack/Pman.Tab.MTrackRepos.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
10   "9e727fdd3aec8274f46685441900280d" : "Project",
11   "7dce122004969d56ae2e0245cb754d35" : "Edit",
12   "73cdcee8881d309dd256134f98347769" : "Repopath",
13   "30269022e9d8f51beaabb52e5d0de2b7" : "Parent",
14   "de1f88f6f7789baf4d35f2919f100fc3" : "Repositories",
15   "97ec8018c492164da252cbaf95f0fa98" : "Shortname",
16   "a4cf31f8bea7da20524198fbe5c0db2a" : "No mtrack_repos found",
17   "f1c61eb7938469f5aa08964c8b2be862" : "Scmtype",
18   "b5a7adde1af5c87d7fd797b6245c2a39" : "Description",
19   "6c47888cc8867737f167632508b2f58b" : "Displaying mtrack_repos{0} - {1} of {2}"
20  },
21  "items" : [
22   {
23    "listeners" : {
24     "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
25    },
26    "fitToframe" : true,
27    "background" : true,
28    "region" : "center",
29    "title" : "Repositories",
30    "xtype" : "GridPanel",
31    "fitContainer" : true,
32    "$ xns" : "Roo",
33    "tableName" : "mtrack_repos",
34    "items" : [
35     {
36      "listeners" : {
37       "|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",
38       "|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}"
39      },
40      "autoExpandColumn" : "shortname",
41      "xtype" : "Grid",
42      "loadMask" : true,
43      "$ xns" : "Roo.grid",
44      "* prop" : "grid",
45      "items" : [
46       {
47        "remoteSort" : true,
48        "xtype" : "Store",
49        "$ sortInfo" : "{ field : 'shortname', direction: 'ASC' }",
50        "$ xns" : "Roo.data",
51        "* prop" : "dataSource",
52        "items" : [
53         {
54          "$ url" : "baseURL + '/Roo/mtrack_repos.php'",
55          "method" : "GET",
56          "xtype" : "HttpProxy",
57          "$ xns" : "Roo.data",
58          "* prop" : "proxy"
59         },
60         {
61          "id" : "id",
62          "root" : "data",
63          "xtype" : "JsonReader",
64          "$ xns" : "Roo.data",
65          "$ 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]",
66          "* prop" : "reader",
67          "totalProperty" : "total"
68         }
69        ]
70       },
71       {
72        "pageSize" : 25,
73        "xtype" : "PagingToolbar",
74        "emptyMsg" : "No mtrack_repos found",
75        "$ xns" : "Roo",
76        "displayInfo" : true,
77        "displayMsg" : "Displaying mtrack_repos{0} - {1} of {2}",
78        "* prop" : "footer"
79       },
80       {
81        "xtype" : "Toolbar",
82        "$ xns" : "Roo",
83        "* prop" : "toolbar",
84        "items" : [
85         {
86          "listeners" : {
87           "|click" : "function()\n{\n    if (!_this.dialog) { return; }\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
88          },
89          "text" : "Add",
90          "xtype" : "Button",
91          "cls" : "x-btn-text-icon",
92          "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
93          "$ xns" : "Roo.Toolbar"
94         },
95         {
96          "listeners" : {
97           "|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"
98          },
99          "text" : "Edit",
100          "xtype" : "Button",
101          "cls" : "x-btn-text-icon",
102          "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
103          "$ xns" : "Roo.Toolbar"
104         }
105        ]
106       },
107       {
108        "xtype" : "ColumnModel",
109        "header" : "Project",
110        "width" : 150,
111        "$ renderer" : "function(v) { return String.format('{0}', v); }",
112        "$ xns" : "Roo.grid",
113        "* prop" : "colModel[]",
114        "dataIndex" : "project_id_name"
115       },
116       {
117        "xtype" : "ColumnModel",
118        "width" : 200,
119        "header" : "Shortname",
120        "$ renderer" : "function(v) { return String.format('{0}', v); }",
121        "$ xns" : "Roo.grid",
122        "* prop" : "colModel[]",
123        "dataIndex" : "shortname"
124       },
125       {
126        "xtype" : "ColumnModel",
127        "header" : "Scmtype",
128        "width" : 70,
129        "$ renderer" : "function(v) { return String.format('{0}', v); }",
130        "$ xns" : "Roo.grid",
131        "* prop" : "colModel[]",
132        "dataIndex" : "scmtype"
133       },
134       {
135        "xtype" : "ColumnModel",
136        "header" : "Repopath",
137        "width" : 100,
138        "$ renderer" : "function(v) { return String.format('{0}', v); }",
139        "$ xns" : "Roo.grid",
140        "* prop" : "colModel[]",
141        "dataIndex" : "repopath"
142       },
143       {
144        "xtype" : "ColumnModel",
145        "width" : 200,
146        "header" : "Description",
147        "$ renderer" : "function(v) { return String.format('{0}', v); }",
148        "$ xns" : "Roo.grid",
149        "* prop" : "colModel[]",
150        "dataIndex" : "description"
151       },
152       {
153        "xtype" : "ColumnModel",
154        "header" : "Parent",
155        "width" : 100,
156        "$ renderer" : "function(v) { return String.format('{0}', v); }",
157        "$ xns" : "Roo.grid",
158        "* prop" : "colModel[]",
159        "dataIndex" : "parent"
160       }
161      ]
162     }
163    ]
164   }
165  ]
166 }