Fix #5640 - prevent multiple no milestone being created
[Pman.MTrack] / Pman.Dialog.MTrackTicket.bjs
1 {
2     "id": "roo-file-232",
3     "name": "Pman.Dialog.MTrackTicket",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackTicket.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "resize": "function (_self, width, height)\n{\n    var bw = width - 320;\n    _this.form.findField('description').el.setWidth(bw);\n    _this.summaryBox.el.setWidth(bw+30);\n        _this.summaryCol.el.setWidth(bw+45);\n          _this.descCol.el.setWidth(bw+35);\n          \n}"
11             },
12             "closable": false,
13             "collapsible": false,
14             "height": 450,
15             "modal": true,
16             "resizable": true,
17             "title": "Edit or Create Ticket",
18             "width": 700,
19             "xtype": "LayoutDialog",
20             "|xns": "Roo",
21             "items": [
22                 {
23                     "|xns": "Roo",
24                     "xtype": "LayoutRegion",
25                     "*prop": "center"
26                 },
27                 {
28                     "region": "center",
29                     "xtype": "ContentPanel",
30                     "|xns": "Roo",
31                     "items": [
32                         {
33                             "listeners": {
34                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n  \n       this.load({ method: 'GET', params: { '_id' : _this.data.id  || 0}});\n          \n       return;\n    }\n    if (action.type == 'load') {\n       if (!_this.data.id) {\n            this.setValues(_this.data);\n        }\n        return;\n    }\n    \n    \n    if (action.type =='submit') {\n    \n        if (!_this.data.id * 1) {\n            Roo.MessageBox.confirm(\"Close?\", \n                \"The new ticket id is #\" + action.result.data.id + \", Press yes to close, or no to keep editing\",\n                function (res) {\n                    if (res == 'yes') {\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                     _this.data.id = action.result.data.id;\n                     _this.form.fireEvent('actioncomplete', _this.form, { type : 'setdata', data : {}});\n                     return;\n                 }\n             );\n        \n        \n        \n        \n            return;\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\n         return;\n    }\n}\n",
35                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
36                             },
37                             "method": "POST",
38                             "style": "margin:10px;width:1000px;margin-top:0px;",
39                             "xtype": "Form",
40                             "|url": "baseURL + '/Roo/mtrack_ticket.php'",
41                             "|xns": "Roo.form",
42                             "items": [
43                                 {
44                                     "width": 210,
45                                     "xtype": "Column",
46                                     "|xns": "Roo.form",
47                                     "items": [
48                                         {
49                                             "labelAlign": "top",
50                                             "legend": "Properties",
51                                             "style": "width:190px;",
52                                             "xtype": "FieldSet",
53                                             "|xns": "Roo.form",
54                                             "items": [
55                                                 {
56                                                     "allowBlank": "false",
57                                                     "displayField": "name",
58                                                     "editable": "false",
59                                                     "emptyText": "Select Project",
60                                                     "fieldLabel": "Project",
61                                                     "forceSelection": true,
62                                                     "hiddenName": "project_id",
63                                                     "listWidth": 400,
64                                                     "loadingText": "Searching...",
65                                                     "minChars": 2,
66                                                     "name": "project_id_name",
67                                                     "pageSize": 20,
68                                                     "qtip": "Select Projects",
69                                                     "queryParam": "query[name]",
70                                                     "selectOnFocus": true,
71                                                     "tpl": "<div class=\"x-grid-cell-text x-btn button \"><b>{name}</b> </div>",
72                                                     "triggerAction": "all",
73                                                     "typeAhead": true,
74                                                     "valueField": "id",
75                                                     "width": 180,
76                                                     "xtype": "ComboBox",
77                                                     "|xns": "Roo.form",
78                                                     "items": [
79                                                         {
80                                                             "listeners": {
81                                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
82                                                             },
83                                                             "*prop": "store",
84                                                             "remoteSort": true,
85                                                             "xtype": "Store",
86                                                             "|sortInfo": "{ direction : 'ASC', field: 'name' }",
87                                                             "|xns": "Roo.data",
88                                                             "items": [
89                                                                 {
90                                                                     "*prop": "proxy",
91                                                                     "xtype": "HttpProxy",
92                                                                     "method": "GET",
93                                                                     "|xns": "Roo.data",
94                                                                     "|url": "baseURL + '/Roo/Projects.php'"
95                                                                 },
96                                                                 {
97                                                                     "*prop": "reader",
98                                                                     "xtype": "JsonReader",
99                                                                     "|xns": "Roo.data",
100                                                                     "id": "id",
101                                                                     "root": "data",
102                                                                     "totalProperty": "total",
103                                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
104                                                                 }
105                                                             ]
106                                                         }
107                                                     ]
108                                                 },
109                                                 {
110                                                     "alwaysQuery": true,
111                                                     "displayField": "name",
112                                                     "editable": "false",
113                                                     "emptyText": "Select milestone",
114                                                     "fieldLabel": "Milestone",
115                                                     "forceSelection": true,
116                                                     "hiddenName": "milestone_id",
117                                                     "listWidth": 400,
118                                                     "loadingText": "Searching...",
119                                                     "minChars": 2,
120                                                     "name": "milestone_id_name",
121                                                     "pageSize": 20,
122                                                     "qtip": "Select mtrack_milestone",
123                                                     "queryParam": "query[name]",
124                                                     "selectOnFocus": true,
125                                                     "tpl": "<div class=\"x-grid-cell-text x-btn button  RdYlGn-q{seqid}-{seqmax}\"><b>{name}</b> </div>",
126                                                     "triggerAction": "all",
127                                                     "typeAhead": true,
128                                                     "valueField": "id",
129                                                     "width": 180,
130                                                     "xtype": "ComboBox",
131                                                     "|xns": "Roo.form",
132                                                     "items": [
133                                                         {
134                                                             "listeners": {
135                                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params.etype = 'milestone';\n    o.params.project_id = _this.form.findField('project_id').getValue();\n    if (!o.params.project_id) {\n        Roo.MessageBox.alert(\"Error\", \"Select Project\");\n        return false;\n    }\n}\n"
136                                                             },
137                                                             "*prop": "store",
138                                                             "remoteSort": true,
139                                                             "xtype": "Store",
140                                                             "|sortInfo": "{ direction : 'ASC', field: 'startdate' }",
141                                                             "|xns": "Roo.data",
142                                                             "items": [
143                                                                 {
144                                                                     "*prop": "proxy",
145                                                                     "xtype": "HttpProxy",
146                                                                     "method": "GET",
147                                                                     "|xns": "Roo.data",
148                                                                     "|url": "baseURL + '/Roo/mtrack_milestone.php'"
149                                                                 },
150                                                                 {
151                                                                     "*prop": "reader",
152                                                                     "xtype": "JsonReader",
153                                                                     "|xns": "Roo.data",
154                                                                     "id": "id",
155                                                                     "root": "data",
156                                                                     "totalProperty": "total",
157                                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
158                                                                 }
159                                                             ]
160                                                         }
161                                                     ]
162                                                 },
163                                                 {
164                                                     "allowBlank": false,
165                                                     "alwaysQuery": true,
166                                                     "displayField": "name",
167                                                     "editable": "false",
168                                                     "emptyText": "Select Priority",
169                                                     "fieldLabel": "Priority",
170                                                     "forceSelection": true,
171                                                     "hiddenName": "priority_id",
172                                                     "listWidth": 400,
173                                                     "loadingText": "Searching...",
174                                                     "minChars": 2,
175                                                     "name": "priority_id_name",
176                                                     "pageSize": 20,
177                                                     "qtip": "Select core_enum",
178                                                     "queryParam": "query[etype]",
179                                                     "selectOnFocus": true,
180                                                     "tpl": "<div class=\"x-grid-cell-text x-btn button  RdYlGn-q{seqid}-{seqmax}\"><b>{name}</b> </div>",
181                                                     "triggerAction": "all",
182                                                     "typeAhead": true,
183                                                     "valueField": "id",
184                                                     "width": 180,
185                                                     "xtype": "ComboBox",
186                                                     "|xns": "Roo.form",
187                                                     "items": [
188                                                         {
189                                                             "listeners": {
190                                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n        o.params.etype = 'priority';\n}\n"
191                                                             },
192                                                             "*prop": "store",
193                                                             "remoteSort": true,
194                                                             "xtype": "Store",
195                                                             "|sortInfo": "{ direction : 'ASC', field: 'seqid' }",
196                                                             "|xns": "Roo.data",
197                                                             "items": [
198                                                                 {
199                                                                     "*prop": "proxy",
200                                                                     "xtype": "HttpProxy",
201                                                                     "method": "GET",
202                                                                     "|xns": "Roo.data",
203                                                                     "|url": "baseURL + '/Roo/core_enum.php'"
204                                                                 },
205                                                                 {
206                                                                     "*prop": "reader",
207                                                                     "xtype": "JsonReader",
208                                                                     "|xns": "Roo.data",
209                                                                     "id": "id",
210                                                                     "root": "data",
211                                                                     "totalProperty": "total",
212                                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]"
213                                                                 }
214                                                             ]
215                                                         }
216                                                     ]
217                                                 },
218                                                 {
219                                                     "allowBlank": false,
220                                                     "alwaysQuery": true,
221                                                     "displayField": "name",
222                                                     "editable": "false",
223                                                     "emptyText": "Select Severity",
224                                                     "fieldLabel": "Severity",
225                                                     "forceSelection": true,
226                                                     "hiddenName": "severity_id",
227                                                     "listWidth": 400,
228                                                     "loadingText": "Searching...",
229                                                     "minChars": 2,
230                                                     "name": "severity_id_name",
231                                                     "pageSize": 20,
232                                                     "qtip": "Select core_enum",
233                                                     "queryParam": "query[etype]",
234                                                     "selectOnFocus": true,
235                                                     "tpl": "<div class=\"x-grid-cell-text x-btn button RdYlGn-q{seqid}-{seqmax}\"><b>{name}</b> </div>",
236                                                     "triggerAction": "all",
237                                                     "typeAhead": true,
238                                                     "valueField": "id",
239                                                     "width": 180,
240                                                     "xtype": "ComboBox",
241                                                     "|xns": "Roo.form",
242                                                     "items": [
243                                                         {
244                                                             "listeners": {
245                                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n        o.params.etype = 'severity';\n}\n"
246                                                             },
247                                                             "*prop": "store",
248                                                             "remoteSort": true,
249                                                             "xtype": "Store",
250                                                             "|sortInfo": "{ direction : 'ASC', field: 'seqid' }",
251                                                             "|xns": "Roo.data",
252                                                             "items": [
253                                                                 {
254                                                                     "*prop": "proxy",
255                                                                     "xtype": "HttpProxy",
256                                                                     "method": "GET",
257                                                                     "|xns": "Roo.data",
258                                                                     "|url": "baseURL + '/Roo/core_enum.php'"
259                                                                 },
260                                                                 {
261                                                                     "*prop": "reader",
262                                                                     "xtype": "JsonReader",
263                                                                     "|xns": "Roo.data",
264                                                                     "id": "id",
265                                                                     "root": "data",
266                                                                     "totalProperty": "total",
267                                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]"
268                                                                 }
269                                                             ]
270                                                         }
271                                                     ]
272                                                 },
273                                                 {
274                                                     "allowBlank": false,
275                                                     "alwaysQuery": true,
276                                                     "displayField": "name",
277                                                     "editable": "false",
278                                                     "emptyText": "Select Classification",
279                                                     "fieldLabel": "Classification",
280                                                     "forceSelection": true,
281                                                     "hiddenName": "classification_id",
282                                                     "listWidth": 400,
283                                                     "loadingText": "Searching...",
284                                                     "minChars": 2,
285                                                     "name": "classification_id_name",
286                                                     "pageSize": 20,
287                                                     "qtip": "Select core_enum",
288                                                     "queryParam": "query[etype]",
289                                                     "selectOnFocus": true,
290                                                     "tpl": "<div class=\"x-grid-cell-text x-btn button RdYlGn-q{seqid}-{seqmax}\"><b>{name}</b> </div>",
291                                                     "triggerAction": "all",
292                                                     "typeAhead": true,
293                                                     "valueField": "id",
294                                                     "width": 180,
295                                                     "xtype": "ComboBox",
296                                                     "|xns": "Roo.form",
297                                                     "items": [
298                                                         {
299                                                             "listeners": {
300                                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n        o.params.etype = 'classification';\n}\n"
301                                                             },
302                                                             "*prop": "store",
303                                                             "remoteSort": true,
304                                                             "xtype": "Store",
305                                                             "|sortInfo": "{ direction : 'ASC', field: 'seqid' }",
306                                                             "|xns": "Roo.data",
307                                                             "items": [
308                                                                 {
309                                                                     "*prop": "proxy",
310                                                                     "xtype": "HttpProxy",
311                                                                     "method": "GET",
312                                                                     "|xns": "Roo.data",
313                                                                     "|url": "baseURL + '/Roo/core_enum.php'"
314                                                                 },
315                                                                 {
316                                                                     "*prop": "reader",
317                                                                     "xtype": "JsonReader",
318                                                                     "|xns": "Roo.data",
319                                                                     "id": "id",
320                                                                     "root": "data",
321                                                                     "totalProperty": "total",
322                                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]"
323                                                                 }
324                                                             ]
325                                                         }
326                                                     ]
327                                                 }
328                                             ]
329                                         },
330                                         {
331                                             "legend": "Resources",
332                                             "style": "width: 190px",
333                                             "xtype": "FieldSet",
334                                             "|xns": "Roo.form",
335                                             "items": [
336                                                 {
337                                                     "labelAlign": "top",
338                                                     "width": 190,
339                                                     "xtype": "Column",
340                                                     "|xns": "Roo.form",
341                                                     "items": [
342                                                         {
343                                                             "allowBlank": "false",
344                                                             "alwaysQuery": true,
345                                                             "displayField": "name",
346                                                             "editable": "false",
347                                                             "emptyText": "Select Person",
348                                                             "fieldLabel": "Developer",
349                                                             "forceSelection": true,
350                                                             "hiddenName": "developer_id",
351                                                             "listWidth": 400,
352                                                             "loadingText": "Searching...",
353                                                             "minChars": 2,
354                                                             "name": "developer_id_name",
355                                                             "pageSize": 20,
356                                                             "qtip": "Select Person",
357                                                             "queryParam": "query[name]",
358                                                             "selectOnFocus": true,
359                                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> &lt;{email}&gt; </div>",
360                                                             "triggerAction": "all",
361                                                             "typeAhead": true,
362                                                             "valueField": "id",
363                                                             "width": 180,
364                                                             "xtype": "ComboBox",
365                                                             "|xns": "Roo.form",
366                                                             "items": [
367                                                                 {
368                                                                     "listeners": {
369                                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    \n    // set more here\n    o.params['query[project_id]'] = _this.form.findField('project_id').getValue();\n    if (!o.params['query[project_id]']) {\n        Roo.MessageBox.alert(\"Error\", \"Select Project\");\n        return false;\n    }\n    o.params['query[role]'] = 'DEVELOPER';\n}\n"
370                                                                     },
371                                                                     "*prop": "store",
372                                                                     "remoteSort": true,
373                                                                     "xtype": "Store",
374                                                                     "|sortInfo": "{ direction : 'ASC', field: 'name' }",
375                                                                     "|xns": "Roo.data",
376                                                                     "items": [
377                                                                         {
378                                                                             "*prop": "proxy",
379                                                                             "xtype": "HttpProxy",
380                                                                             "method": "GET",
381                                                                             "|xns": "Roo.data",
382                                                                             "|url": "baseURL + '/Roo/Person.php'"
383                                                                         },
384                                                                         {
385                                                                             "*prop": "reader",
386                                                                             "xtype": "JsonReader",
387                                                                             "|xns": "Roo.data",
388                                                                             "id": "id",
389                                                                             "root": "data",
390                                                                             "totalProperty": "total",
391                                                                             "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
392                                                                         }
393                                                                     ]
394                                                                 }
395                                                             ]
396                                                         },
397                                                         {
398                                                             "allowBlank": "false",
399                                                             "alwaysQuery": true,
400                                                             "displayField": "name",
401                                                             "editable": "false",
402                                                             "emptyText": "Select Person",
403                                                             "fieldLabel": "Owner",
404                                                             "forceSelection": true,
405                                                             "hiddenName": "owner_id",
406                                                             "listWidth": 400,
407                                                             "loadingText": "Searching...",
408                                                             "minChars": 2,
409                                                             "name": "owner_id_name",
410                                                             "pageSize": 20,
411                                                             "qtip": "Select Person",
412                                                             "queryParam": "query[name]",
413                                                             "selectOnFocus": true,
414                                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
415                                                             "triggerAction": "all",
416                                                             "typeAhead": true,
417                                                             "valueField": "id",
418                                                             "width": 180,
419                                                             "xtype": "ComboBox",
420                                                             "|xns": "Roo.form",
421                                                             "items": [
422                                                                 {
423                                                                     "listeners": {
424                                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n    o.params['query[project_id]']= _this.form.findField('project_id').getValue();\n    if (!o.params['query[project_id]'])  {\n        Roo.MessageBox.alert(\"Error\", \"Select Project\");\n        return false;\n    }\n}\n"
425                                                                     },
426                                                                     "*prop": "store",
427                                                                     "remoteSort": true,
428                                                                     "xtype": "Store",
429                                                                     "|sortInfo": "{ direction : 'ASC', field: 'name' }",
430                                                                     "|xns": "Roo.data",
431                                                                     "items": [
432                                                                         {
433                                                                             "*prop": "proxy",
434                                                                             "xtype": "HttpProxy",
435                                                                             "method": "GET",
436                                                                             "|xns": "Roo.data",
437                                                                             "|url": "baseURL + '/Roo/Person.php'"
438                                                                         },
439                                                                         {
440                                                                             "*prop": "reader",
441                                                                             "xtype": "JsonReader",
442                                                                             "|xns": "Roo.data",
443                                                                             "id": "id",
444                                                                             "root": "data",
445                                                                             "totalProperty": "total",
446                                                                             "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
447                                                                         }
448                                                                     ]
449                                                                 }
450                                                             ]
451                                                         }
452                                                     ]
453                                                 },
454                                                 {
455                                                     "labelAlign": "right",
456                                                     "labelWidth": 100,
457                                                     "width": 190,
458                                                     "xtype": "Column",
459                                                     "|xns": "Roo.form",
460                                                     "items": [
461                                                         {
462                                                             "style": "align:right;",
463                                                             "fieldLabel": "Estimated",
464                                                             "name": "estimated",
465                                                             "width": 75,
466                                                             "xtype": "NumberField",
467                                                             "|xns": "Roo.form"
468                                                         }
469                                                     ]
470                                                 }
471                                             ]
472                                         }
473                                     ]
474                                 },
475                                 {
476                                     "listeners": {
477                                         "show": "function (_self)\n{\n\n}",
478                                         "render": "function (_self)\n{\n  _this.summaryCol = _self;\n}"
479                                     },
480                                     "style": "margin-left:10px",
481                                     "width": 430,
482                                     "xtype": "Column",
483                                     "|xns": "Roo.form",
484                                     "items": [
485                                         {
486                                             "listeners": {
487                                                 "show": "function (_self)\n{\n\n}",
488                                                 "render": "function (_self)\n{\n  _this.summaryBox = _self;\n}"
489                                             },
490                                             "legend": "Summary / Details",
491                                             "style": "width:410px",
492                                             "xtype": "FieldSet",
493                                             "|xns": "Roo.form",
494                                             "items": [
495                                                 {
496                                                     "labelAlign": "top",
497                                                     "width": 400,
498                                                     "xtype": "Column",
499                                                     "|xns": "Roo.form",
500                                                     "items": [
501                                                         {
502                                                             "fieldLabel": "Summary",
503                                                             "name": "summary",
504                                                             "width": 400,
505                                                             "xtype": "TextField",
506                                                             "|xns": "Roo.form"
507                                                         }
508                                                     ]
509                                                 },
510                                                 {
511                                                     "labelWidth": 70,
512                                                     "style": "float:left; width:400px",
513                                                     "width": 400,
514                                                     "xtype": "Row",
515                                                     "|xns": "Roo.form",
516                                                     "items": [
517                                                         {
518                                                             "listeners": {
519                                                                 "check": "function (_self, checked)\n{\n\n    if (!_this.form) {\n        return;\n    }\n    if (checked) {\n    \n         _this.form.findField('view_as').setValue('text');\n     }\n         \n    \n    \n     if (this.radio) {\n        return;\n    }\n     var md = _this.form.findField('view_as_markdown');\n\n    md.radio = true;\n    md.setValue(checked ? 0 : 1);\n    \n    md.radio = false;\n}"
520                                                             },
521                                                             "boxLabel": "text",
522                                                             "fieldLabel": "View as",
523                                                             "name": "view_as_text",
524                                                             "value": 1,
525                                                             "width": 100,
526                                                             "xtype": "Checkbox",
527                                                             "|xns": "Roo.form"
528                                                         },
529                                                         {
530                                                             "hideLabels": true,
531                                                             "style": "float: left",
532                                                             "width": 100,
533                                                             "xtype": "Row",
534                                                             "|xns": "Roo.form",
535                                                             "items": [
536                                                                 {
537                                                                     "listeners": {
538                                                                         "check": "function (_self, checked)\n{\n       if (!_this.form) {\n        return;\n    }\n    \n        if (checked) {\n    \n         _this.form.findField('view_as').setValue('markdown');\n     }\n    \n     if (this.radio) {\n        return;\n    }\n     var md = _this.form.findField('view_as_text');\n\n    md.radio = true;\n    md.setValue(checked ? 0 : 1);\n    md.radio = false;\n}"
539                                                                     },
540                                                                     "boxLabel": "markdown",
541                                                                     "name": "view_as_markdown",
542                                                                     "value": 1,
543                                                                     "xtype": "Checkbox",
544                                                                     "|xns": "Roo.form"
545                                                                 }
546                                                             ]
547                                                         }
548                                                     ]
549                                                 },
550                                                 {
551                                                     "listeners": {
552                                                         "show": "function (_self)\n{\n\n}",
553                                                         "render": "function (_self)\n{\n  _this.descCol = _self;\n}"
554                                                     },
555                                                     "labelAlign": "top",
556                                                     "width": 400,
557                                                     "xtype": "Column",
558                                                     "|xns": "Roo.form",
559                                                     "items": [
560                                                         {
561                                                             "fieldLabel": "Description",
562                                                             "height": 250,
563                                                             "name": "description",
564                                                             "width": 400,
565                                                             "xtype": "TextArea",
566                                                             "|xns": "Roo.form"
567                                                         }
568                                                     ]
569                                                 }
570                                             ]
571                                         }
572                                     ]
573                                 },
574                                 {
575                                     "name": "id",
576                                     "|xns": "Roo.form",
577                                     "xtype": "Hidden"
578                                 },
579                                 {
580                                     "name": "view_as",
581                                     "xtype": "Hidden",
582                                     "|xns": "Roo.form"
583                                 }
584                             ]
585                         }
586                     ]
587                 },
588                 {
589                     "listeners": {
590                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
591                     },
592                     "*prop": "buttons[]",
593                     "text": "Cancel",
594                     "xtype": "Button",
595                     "|xns": "Roo"
596                 },
597                 {
598                     "listeners": {
599                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n \n    _this.form.doAction(\"submit\");\n\n}"
600                     },
601                     "*prop": "buttons[]",
602                     "text": "Save",
603                     "xtype": "Button",
604                     "|xns": "Roo"
605                 }
606             ]
607         }
608     ],
609     "permname": "",
610     "modOrder": "001"
611 }