3 "name": "Pman.Dialog.MTrackMilestone",
6 "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackMilestone.bjs",
13 "title": "Edit / Create mtrack_milestone",
15 "xtype": "LayoutDialog",
20 "xtype": "LayoutRegion",
25 "xtype": "ContentPanel",
30 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if (_this.data.id) {\n\n this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\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",
31 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
34 "style": "margin:10px;",
36 "|url": "baseURL + '/Roo/mtrack_milestone.php'",
40 "allowBlank": "false",
41 "displayField": "name",
43 "emptyText": "Select Project",
44 "fieldLabel": "Project",
45 "forceSelection": true,
46 "hiddenName": "project_id",
48 "loadingText": "Searching...",
50 "name": "project_id_name",
52 "qtip": "Select Projects",
53 "queryParam": "query[name]",
54 "selectOnFocus": true,
55 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{CODE} - {name}</b> </div>",
56 "triggerAction": "all",
65 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
70 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
78 "|url": "baseURL + '/Roo/Projects.php'"
82 "xtype": "JsonReader",
86 "totalProperty": "total",
87 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
101 "fieldLabel": "Description",
103 "name": "description",
110 "allowBlank": "false",
111 "displayField": "name",
113 "emptyText": "Select Projects",
114 "fieldLabel": "Projects",
115 "forceSelection": true,
118 "loadingText": "Searching...",
122 "qtip": "Select Projects",
124 "selectOnFocus": true,
125 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
126 "triggerAction": "all",
130 "xtype": "ComboBoxLister",
138 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
140 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
145 "xtype": "HttpProxy",
148 "|url": "baseURL + '/Roo/Projects.php'"
152 "xtype": "JsonReader",
156 "totalProperty": "total",
157 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
164 "fieldLabel": "Startdate",
168 "xtype": "DateField",
169 "|value": "(function() { (new Date()).format('Y-m-d')})()",
173 "fieldLabel": "Duedate",
177 "xtype": "DateField",
181 "fieldLabel": "Completed",
185 "xtype": "DateField",
199 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
201 "*prop": "buttons[]",
208 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
210 "*prop": "buttons[]",