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