Pman.Dialog.MTrackRepos.bjs
[Pman.MTrack] / Pman.Dialog.MTrackRepos.bjs
1 {
2     "id": "roo-file-137",
3     "name": "Pman.Dialog.MTrackRepos",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackRepos.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 420,
12             "resizable": false,
13             "title": "Edit / Create mtrack_repos",
14             "width": 400,
15             "xtype": "LayoutDialog",
16             "|xns": "Roo",
17             "items": [
18                 {
19                     "|xns": "Roo",
20                     "xtype": "LayoutRegion",
21                     "*prop": "center"
22                 },
23                 {
24                     "region": "center",
25                     "xtype": "ContentPanel",
26                     "|xns": "Roo",
27                     "items": [
28                         {
29                             "listeners": {
30                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n \n       this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       return;\n    }\n    if (action.type == 'load') {\n \n        return;\n    }\n    if (action.type =='submit') {\n    \n \n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
31                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
32                             },
33                             "method": "POST",
34                             "style": "margin:10px;",
35                             "xtype": "Form",
36                             "|url": "baseURL + '/Roo/mtrack_repos.php'",
37                             "|xns": "Roo.form",
38                             "items": [
39                                 {
40                                     "allowBlank": false,
41                                     "displayField": "name",
42                                     "editable": false,
43                                     "emptyText": "Select Project",
44                                     "fieldLabel": "Project",
45                                     "forceSelection": false,
46                                     "hiddenName": "project_id",
47                                     "listWidth": 400,
48                                     "loadingText": "Searching...",
49                                     "minChars": 2,
50                                     "name": "project_id_name",
51                                     "pageSize": 20,
52                                     "qtip": "Select Projects",
53                                     "queryParam": "query[name]",
54                                     "selectOnFocus": true,
55                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b>{name} </div>",
56                                     "triggerAction": "all",
57                                     "typeAhead": true,
58                                     "valueField": "id",
59                                     "width": 200,
60                                     "xtype": "ComboBox",
61                                     "|xns": "Roo.form",
62                                     "items": [
63                                         {
64                                             "*prop": "store",
65                                             "xtype": "Store",
66                                             "|xns": "Roo.data",
67                                             "remoteSort": true,
68                                             "|sortInfo": "{ direction : 'ASC', field: 'id' }",
69                                             "listeners": {
70                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
71                                             },
72                                             "items": [
73                                                 {
74                                                     "*prop": "proxy",
75                                                     "xtype": "HttpProxy",
76                                                     "method": "GET",
77                                                     "|xns": "Roo.data",
78                                                     "|url": "baseURL + '/Roo/Projects.php'"
79                                                 },
80                                                 {
81                                                     "*prop": "reader",
82                                                     "xtype": "JsonReader",
83                                                     "|xns": "Roo.data",
84                                                     "id": "id",
85                                                     "root": "data",
86                                                     "totalProperty": "total",
87                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
88                                                 }
89                                             ]
90                                         }
91                                     ]
92                                 },
93                                 {
94                                     "fieldLabel": "Shortname",
95                                     "name": "shortname",
96                                     "width": 200,
97                                     "|xns": "Roo.form",
98                                     "xtype": "TextField"
99                                 },
100                                 {
101                                     "fieldLabel": "Scmtype",
102                                     "name": "scmtype",
103                                     "width": 200,
104                                     "|xns": "Roo.form",
105                                     "xtype": "TextField"
106                                 },
107                                 {
108                                     "fieldLabel": "Repopath",
109                                     "name": "repopath",
110                                     "width": 200,
111                                     "|xns": "Roo.form",
112                                     "xtype": "TextField"
113                                 },
114                                 {
115                                     "fieldLabel": "Browserurl",
116                                     "name": "browserurl",
117                                     "width": 200,
118                                     "|xns": "Roo.form",
119                                     "xtype": "TextField"
120                                 },
121                                 {
122                                     "fieldLabel": "Browsertype",
123                                     "name": "browsertype",
124                                     "width": 200,
125                                     "|xns": "Roo.form",
126                                     "xtype": "TextField"
127                                 },
128                                 {
129                                     "fieldLabel": "Description",
130                                     "name": "description",
131                                     "width": 200,
132                                     "|xns": "Roo.form",
133                                     "xtype": "TextArea",
134                                     "height": 100
135                                 },
136                                 {
137                                     "fieldLabel": "Serverurl",
138                                     "name": "serverurl",
139                                     "width": 200,
140                                     "|xns": "Roo.form",
141                                     "xtype": "TextField"
142                                 },
143                                 {
144                                     "fieldLabel": "Parent",
145                                     "name": "parent",
146                                     "width": 200,
147                                     "|xns": "Roo.form",
148                                     "xtype": "TextField"
149                                 },
150                                 {
151                                     "fieldLabel": "Clonedfrom",
152                                     "name": "clonedfrom",
153                                     "width": 75,
154                                     "|xns": "Roo.form",
155                                     "xtype": "TextField"
156                                 },
157                                 {
158                                     "name": "id",
159                                     "|xns": "Roo.form",
160                                     "xtype": "Hidden"
161                                 }
162                             ]
163                         }
164                     ]
165                 },
166                 {
167                     "listeners": {
168                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
169                     },
170                     "*prop": "buttons[]",
171                     "text": "Cancel",
172                     "xtype": "Button",
173                     "|xns": "Roo"
174                 },
175                 {
176                     "listeners": {
177                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
178                     },
179                     "*prop": "buttons[]",
180                     "text": "Save",
181                     "xtype": "Button",
182                     "|xns": "Roo"
183                 }
184             ]
185         }
186     ],
187     "permname": "",
188     "modOrder": "001"
189 }