php warnings
[Pman.MTrack] / Pman.Dialog.MTrackMilestone.bjs
1 {
2     "id": "roo-file-231",
3     "name": "Pman.Dialog.MTrackMilestone",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackMilestone.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 350,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit / Create Milestone",
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    }\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_milestone.php'",
38                             "|xns": "Roo.form",
39                             "items": [
40                                 {
41                                     "fieldLabel": "Name",
42                                     "name": "name",
43                                     "width": 200,
44                                     "|xns": "Roo.form",
45                                     "xtype": "TextField"
46                                 },
47                                 {
48                                     "allowBlank": false,
49                                     "displayField": "name",
50                                     "editable": false,
51                                     "emptyText": "Select Project",
52                                     "fieldLabel": "Project",
53                                     "forceSelection": true,
54                                     "hiddenName": "project_id",
55                                     "listWidth": 400,
56                                     "loadingText": "Searching...",
57                                     "minChars": 2,
58                                     "name": "project_id_name",
59                                     "pageSize": 50,
60                                     "qtip": "Select Projects",
61                                     "queryParam": "query[name]",
62                                     "selectOnFocus": true,
63                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> {name}</div>",
64                                     "triggerAction": "all",
65                                     "valueField": "id",
66                                     "width": 200,
67                                     "xtype": "ComboBox",
68                                     "|xns": "Roo.form",
69                                     "items": [
70                                         {
71                                             "listeners": {
72                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
73                                             },
74                                             "*prop": "store",
75                                             "remoteSort": true,
76                                             "xtype": "Store",
77                                             "|sortInfo": "{ direction : 'ASC', field: 'code' }",
78                                             "|xns": "Roo.data",
79                                             "items": [
80                                                 {
81                                                     "*prop": "proxy",
82                                                     "xtype": "HttpProxy",
83                                                     "method": "GET",
84                                                     "|xns": "Roo.data",
85                                                     "|url": "baseURL + '/Roo/Projects.php'"
86                                                 },
87                                                 {
88                                                     "*prop": "reader",
89                                                     "xtype": "JsonReader",
90                                                     "|xns": "Roo.data",
91                                                     "id": "id",
92                                                     "root": "data",
93                                                     "totalProperty": "total",
94                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
95                                                 }
96                                             ]
97                                         }
98                                     ]
99                                 },
100                                 {
101                                     "fieldLabel": "Description",
102                                     "name": "description",
103                                     "width": 200,
104                                     "|xns": "Roo.form",
105                                     "xtype": "TextArea",
106                                     "height": 100
107                                 },
108                                 {
109                                     "altFormats": "Y-m-d H:i:s",
110                                     "fieldLabel": "Startdate",
111                                     "format": "Y-m-d",
112                                     "name": "startdate",
113                                     "width": 100,
114                                     "xtype": "DateField",
115                                     "|xns": "Roo.form"
116                                 },
117                                 {
118                                     "altFormats": "Y-m-d H:i:s",
119                                     "fieldLabel": "Duedate",
120                                     "format": "Y-m-d",
121                                     "name": "duedate",
122                                     "width": 100,
123                                     "xtype": "DateField",
124                                     "|xns": "Roo.form"
125                                 },
126                                 {
127                                     "altFormats": "Y-m-d H:i:s",
128                                     "fieldLabel": "Completed",
129                                     "format": "Y-m-d",
130                                     "name": "completed",
131                                     "width": 100,
132                                     "xtype": "DateField",
133                                     "|xns": "Roo.form"
134                                 },
135                                 {
136                                     "boxLabel": "On hold",
137                                     "fieldLabel": "Status",
138                                     "inputValue": 1,
139                                     "name": "on_hold",
140                                     "valueOff": 0,
141                                     "xtype": "Checkbox",
142                                     "|xns": "Roo.form"
143                                 },
144                                 {
145                                     "name": "id",
146                                     "|xns": "Roo.form",
147                                     "xtype": "Hidden"
148                                 }
149                             ]
150                         }
151                     ]
152                 },
153                 {
154                     "listeners": {
155                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
156                     },
157                     "*prop": "buttons[]",
158                     "text": "Cancel",
159                     "xtype": "Button",
160                     "|xns": "Roo"
161                 },
162                 {
163                     "listeners": {
164                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n \n    _this.form.doAction(\"submit\");\n\n}"
165                     },
166                     "*prop": "buttons[]",
167                     "text": "Save",
168                     "xtype": "Button",
169                     "|xns": "Roo"
170                 }
171             ]
172         }
173     ],
174     "permname": "",
175     "modOrder": "001"
176 }