MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Tab.TicketView.js
[web.mtrack] / MTrackWeb / templates / images / MTrackWeb / MTrackWeb.Tab.TicketView.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 MTrackWeb.Tab.TicketView = new Roo.XComponent({
6     order    : '001-MTrackWeb.Tab.TicketView',
7     region   : 'center',
8     parent   : false,
9     name     : "unnamed module",
10     disabled : false, 
11     tree : function()
12     {
13         var _this = this;
14         var MODULE = this;
15         return {
16             xtype: 'NestedLayoutPanel',
17             xns: Roo,
18             title : "Tickets",
19             layout : {
20                 xtype: 'BorderLayout',
21                 xns: Roo,
22                 items : [
23                     {
24                         xtype: 'ContentPanel',
25                         xns: Roo,
26                         autoScroll : true,
27                         region : 'east',
28                         title : "Add / Edit Ticket",
29                         adjustments : [30, 30],
30                         items : [
31                             {
32                                 xtype: 'Form',
33                                 xns: Roo.form,
34                                 listeners : {
35                                     actioncomplete : function(_self,action)
36                                     {
37                                         if (action.type == 'setdata') {
38                                            //_this.dialog.el.mask("Loading");
39                                            //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
40                                            return;
41                                         }
42                                         if (action.type == 'load') {
43                                             _this.dialog.el.unmask();
44                                             return;
45                                         }
46                                         if (action.type =='submit') {
47                                         
48                                             _this.dialog.el.unmask();
49                                             _this.dialog.hide();
50                                         
51                                              if (_this.callback) {
52                                                 _this.callback.call(_this, _this.form.getValues());
53                                              }
54                                              _this.form.reset();
55                                              return;
56                                         }
57                                     },
58                                     rendered : function (form)
59                                     {
60                                         _this.form= form;
61                                     }
62                                 },
63                                 method : 'POST',
64                                 style : 'margin:10px;width:1000px;',
65                                 url : baseURL + '/Roo/mtrack_ticket.php',
66                                 items : [
67                                     {
68                                         xtype: 'Column',
69                                         xns: Roo.form,
70                                         width : 200,
71                                         items : [
72                                             {
73                                                 xtype: 'FieldSet',
74                                                 xns: Roo.form,
75                                                 labelAlign : 'top',
76                                                 legend : "Properties",
77                                                 items : [
78                                                     {
79                                                         xtype: 'ComboBox',
80                                                         xns: Roo.form,
81                                                         allowBlank : 'false',
82                                                         displayField : 'name',
83                                                         editable : 'false',
84                                                         emptyText : "Select Projects",
85                                                         fieldLabel : 'Project',
86                                                         forceSelection : true,
87                                                         hiddenName : 'project_id',
88                                                         listWidth : 400,
89                                                         loadingText : "Searching...",
90                                                         minChars : 2,
91                                                         name : 'project_id_name',
92                                                         pageSize : 20,
93                                                         qtip : "Select Projects",
94                                                         queryParam : 'query[name]',
95                                                         selectOnFocus : true,
96                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
97                                                         triggerAction : 'all',
98                                                         typeAhead : true,
99                                                         valueField : 'id',
100                                                         width : 180,
101                                                         store : {
102                                                             xtype: 'Store',
103                                                             xns: Roo.data,
104                                                             remoteSort : true,
105                                                             sortInfo : { direction : 'ASC', field: 'id' },
106                                                             listeners : {
107                                                                 beforeload : function (_self, o){
108                                                                     o.params = o.params || {};
109                                                                     // set more here
110                                                                 }
111                                                             },
112                                                             proxy : {
113                                                                 xtype: 'HttpProxy',
114                                                                 xns: Roo.data,
115                                                                 method : 'GET',
116                                                                 url : baseURL + '/Roo/Projects.php'
117                                                             },
118                                                             reader : {
119                                                                 xtype: 'JsonReader',
120                                                                 xns: Roo.data,
121                                                                 id : 'id',
122                                                                 root : 'data',
123                                                                 totalProperty : 'total',
124                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
125                                                             }
126                                                         }
127                                                     },
128                                                     {
129                                                         xtype: 'ComboBox',
130                                                         xns: Roo.form,
131                                                         allowBlank : 'false',
132                                                         displayField : 'name',
133                                                         editable : 'false',
134                                                         emptyText : "Select mtrack_milestone",
135                                                         fieldLabel : 'Milestone',
136                                                         forceSelection : true,
137                                                         hiddenName : 'milestone_id',
138                                                         listWidth : 400,
139                                                         loadingText : "Searching...",
140                                                         minChars : 2,
141                                                         name : 'milestone_id_name',
142                                                         pageSize : 20,
143                                                         qtip : "Select mtrack_milestone",
144                                                         queryParam : 'query[name]',
145                                                         selectOnFocus : true,
146                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
147                                                         triggerAction : 'all',
148                                                         typeAhead : true,
149                                                         valueField : 'id',
150                                                         width : 180,
151                                                         store : {
152                                                             xtype: 'Store',
153                                                             xns: Roo.data,
154                                                             remoteSort : true,
155                                                             sortInfo : { direction : 'ASC', field: 'id' },
156                                                             listeners : {
157                                                                 beforeload : function (_self, o){
158                                                                     o.params = o.params || {};
159                                                                     // set more here
160                                                                 }
161                                                             },
162                                                             proxy : {
163                                                                 xtype: 'HttpProxy',
164                                                                 xns: Roo.data,
165                                                                 method : 'GET',
166                                                                 url : baseURL + '/Roo/mtrack_milestone.php'
167                                                             },
168                                                             reader : {
169                                                                 xtype: 'JsonReader',
170                                                                 xns: Roo.data,
171                                                                 id : 'id',
172                                                                 root : 'data',
173                                                                 totalProperty : 'total',
174                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
175                                                             }
176                                                         }
177                                                     },
178                                                     {
179                                                         xtype: 'ComboBox',
180                                                         xns: Roo.form,
181                                                         allowBlank : 'false',
182                                                         displayField : 'etype',
183                                                         editable : 'false',
184                                                         emptyText : "Select core_enum",
185                                                         fieldLabel : 'Priority',
186                                                         forceSelection : true,
187                                                         hiddenName : 'priority_id',
188                                                         listWidth : 400,
189                                                         loadingText : "Searching...",
190                                                         minChars : 2,
191                                                         name : 'priority_id_etype',
192                                                         pageSize : 20,
193                                                         qtip : "Select core_enum",
194                                                         queryParam : 'query[etype]',
195                                                         selectOnFocus : true,
196                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
197                                                         triggerAction : 'all',
198                                                         typeAhead : true,
199                                                         valueField : 'id',
200                                                         width : 180,
201                                                         store : {
202                                                             xtype: 'Store',
203                                                             xns: Roo.data,
204                                                             remoteSort : true,
205                                                             sortInfo : { direction : 'ASC', field: 'id' },
206                                                             listeners : {
207                                                                 beforeload : function (_self, o){
208                                                                     o.params = o.params || {};
209                                                                     // set more here
210                                                                 }
211                                                             },
212                                                             proxy : {
213                                                                 xtype: 'HttpProxy',
214                                                                 xns: Roo.data,
215                                                                 method : 'GET',
216                                                                 url : baseURL + '/Roo/core_enum.php'
217                                                             },
218                                                             reader : {
219                                                                 xtype: 'JsonReader',
220                                                                 xns: Roo.data,
221                                                                 id : 'id',
222                                                                 root : 'data',
223                                                                 totalProperty : 'total',
224                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
225                                                             }
226                                                         }
227                                                     },
228                                                     {
229                                                         xtype: 'ComboBox',
230                                                         xns: Roo.form,
231                                                         allowBlank : 'false',
232                                                         displayField : 'etype',
233                                                         editable : 'false',
234                                                         emptyText : "Select core_enum",
235                                                         fieldLabel : 'Severity',
236                                                         forceSelection : true,
237                                                         hiddenName : 'severity_id',
238                                                         listWidth : 400,
239                                                         loadingText : "Searching...",
240                                                         minChars : 2,
241                                                         name : 'severity_id_etype',
242                                                         pageSize : 20,
243                                                         qtip : "Select core_enum",
244                                                         queryParam : 'query[etype]',
245                                                         selectOnFocus : true,
246                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
247                                                         triggerAction : 'all',
248                                                         typeAhead : true,
249                                                         valueField : 'id',
250                                                         width : 180,
251                                                         store : {
252                                                             xtype: 'Store',
253                                                             xns: Roo.data,
254                                                             remoteSort : true,
255                                                             sortInfo : { direction : 'ASC', field: 'id' },
256                                                             listeners : {
257                                                                 beforeload : function (_self, o){
258                                                                     o.params = o.params || {};
259                                                                     // set more here
260                                                                 }
261                                                             },
262                                                             proxy : {
263                                                                 xtype: 'HttpProxy',
264                                                                 xns: Roo.data,
265                                                                 method : 'GET',
266                                                                 url : baseURL + '/Roo/core_enum.php'
267                                                             },
268                                                             reader : {
269                                                                 xtype: 'JsonReader',
270                                                                 xns: Roo.data,
271                                                                 id : 'id',
272                                                                 root : 'data',
273                                                                 totalProperty : 'total',
274                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
275                                                             }
276                                                         }
277                                                     },
278                                                     {
279                                                         xtype: 'ComboBox',
280                                                         xns: Roo.form,
281                                                         allowBlank : 'false',
282                                                         displayField : 'etype',
283                                                         editable : 'false',
284                                                         emptyText : "Select core_enum",
285                                                         fieldLabel : 'Classification',
286                                                         forceSelection : true,
287                                                         hiddenName : 'classification_id',
288                                                         listWidth : 400,
289                                                         loadingText : "Searching...",
290                                                         minChars : 2,
291                                                         name : 'classification_id_etype',
292                                                         pageSize : 20,
293                                                         qtip : "Select core_enum",
294                                                         queryParam : 'query[etype]',
295                                                         selectOnFocus : true,
296                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
297                                                         triggerAction : 'all',
298                                                         typeAhead : true,
299                                                         valueField : 'id',
300                                                         width : 180,
301                                                         store : {
302                                                             xtype: 'Store',
303                                                             xns: Roo.data,
304                                                             remoteSort : true,
305                                                             sortInfo : { direction : 'ASC', field: 'id' },
306                                                             listeners : {
307                                                                 beforeload : function (_self, o){
308                                                                     o.params = o.params || {};
309                                                                     // set more here
310                                                                 }
311                                                             },
312                                                             proxy : {
313                                                                 xtype: 'HttpProxy',
314                                                                 xns: Roo.data,
315                                                                 method : 'GET',
316                                                                 url : baseURL + '/Roo/core_enum.php'
317                                                             },
318                                                             reader : {
319                                                                 xtype: 'JsonReader',
320                                                                 xns: Roo.data,
321                                                                 id : 'id',
322                                                                 root : 'data',
323                                                                 totalProperty : 'total',
324                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
325                                                             }
326                                                         }
327                                                     }
328                                                 ]
329                                             },
330                                             {
331                                                 xtype: 'FieldSet',
332                                                 xns: Roo.form,
333                                                 labelAlign : 'top',
334                                                 legend : "Status / Resources",
335                                                 items : [
336                                                     {
337                                                         xtype: 'ComboBox',
338                                                         xns: Roo.form,
339                                                         allowBlank : 'false',
340                                                         displayField : 'name',
341                                                         editable : 'false',
342                                                         emptyText : "Select Person",
343                                                         fieldLabel : 'Developer',
344                                                         forceSelection : true,
345                                                         hiddenName : 'developer_id',
346                                                         listWidth : 400,
347                                                         loadingText : "Searching...",
348                                                         minChars : 2,
349                                                         name : 'developer_id_name',
350                                                         pageSize : 20,
351                                                         qtip : "Select Person",
352                                                         queryParam : 'query[name]',
353                                                         selectOnFocus : true,
354                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
355                                                         triggerAction : 'all',
356                                                         typeAhead : true,
357                                                         valueField : 'id',
358                                                         width : 180,
359                                                         store : {
360                                                             xtype: 'Store',
361                                                             xns: Roo.data,
362                                                             remoteSort : true,
363                                                             sortInfo : { direction : 'ASC', field: 'id' },
364                                                             listeners : {
365                                                                 beforeload : function (_self, o){
366                                                                     o.params = o.params || {};
367                                                                     // set more here
368                                                                 }
369                                                             },
370                                                             proxy : {
371                                                                 xtype: 'HttpProxy',
372                                                                 xns: Roo.data,
373                                                                 method : 'GET',
374                                                                 url : baseURL + '/Roo/Person.php'
375                                                             },
376                                                             reader : {
377                                                                 xtype: 'JsonReader',
378                                                                 xns: Roo.data,
379                                                                 id : 'id',
380                                                                 root : 'data',
381                                                                 totalProperty : 'total',
382                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
383                                                             }
384                                                         }
385                                                     },
386                                                     {
387                                                         xtype: 'ComboBox',
388                                                         xns: Roo.form,
389                                                         allowBlank : 'false',
390                                                         displayField : 'name',
391                                                         editable : 'false',
392                                                         emptyText : "Select Person",
393                                                         fieldLabel : 'Owner',
394                                                         forceSelection : true,
395                                                         hiddenName : 'owner_id',
396                                                         listWidth : 400,
397                                                         loadingText : "Searching...",
398                                                         minChars : 2,
399                                                         name : 'owner_id_name',
400                                                         pageSize : 20,
401                                                         qtip : "Select Person",
402                                                         queryParam : 'query[name]',
403                                                         selectOnFocus : true,
404                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
405                                                         triggerAction : 'all',
406                                                         typeAhead : true,
407                                                         valueField : 'id',
408                                                         width : 180,
409                                                         store : {
410                                                             xtype: 'Store',
411                                                             xns: Roo.data,
412                                                             remoteSort : true,
413                                                             sortInfo : { direction : 'ASC', field: 'id' },
414                                                             listeners : {
415                                                                 beforeload : function (_self, o){
416                                                                     o.params = o.params || {};
417                                                                     // set more here
418                                                                 }
419                                                             },
420                                                             proxy : {
421                                                                 xtype: 'HttpProxy',
422                                                                 xns: Roo.data,
423                                                                 method : 'GET',
424                                                                 url : baseURL + '/Roo/Person.php'
425                                                             },
426                                                             reader : {
427                                                                 xtype: 'JsonReader',
428                                                                 xns: Roo.data,
429                                                                 id : 'id',
430                                                                 root : 'data',
431                                                                 totalProperty : 'total',
432                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
433                                                             }
434                                                         }
435                                                     },
436                                                     {
437                                                         xtype: 'ComboBox',
438                                                         xns: Roo.form,
439                                                         allowBlank : 'false',
440                                                         displayField : 'etype',
441                                                         editable : 'false',
442                                                         emptyText : "Select core_enum",
443                                                         fieldLabel : 'Status',
444                                                         forceSelection : true,
445                                                         hiddenName : 'status',
446                                                         listWidth : 400,
447                                                         loadingText : "Searching...",
448                                                         minChars : 2,
449                                                         name : 'status_etype',
450                                                         pageSize : 20,
451                                                         qtip : "Select core_enum",
452                                                         queryParam : 'query[etype]',
453                                                         selectOnFocus : true,
454                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
455                                                         triggerAction : 'all',
456                                                         typeAhead : true,
457                                                         valueField : 'id',
458                                                         width : 180,
459                                                         store : {
460                                                             xtype: 'Store',
461                                                             xns: Roo.data,
462                                                             remoteSort : true,
463                                                             sortInfo : { direction : 'ASC', field: 'id' },
464                                                             listeners : {
465                                                                 beforeload : function (_self, o){
466                                                                     o.params = o.params || {};
467                                                                     // set more here
468                                                                 }
469                                                             },
470                                                             proxy : {
471                                                                 xtype: 'HttpProxy',
472                                                                 xns: Roo.data,
473                                                                 method : 'GET',
474                                                                 url : baseURL + '/Roo/core_enum.php'
475                                                             },
476                                                             reader : {
477                                                                 xtype: 'JsonReader',
478                                                                 xns: Roo.data,
479                                                                 id : 'id',
480                                                                 root : 'data',
481                                                                 totalProperty : 'total',
482                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
483                                                             }
484                                                         }
485                                                     },
486                                                     {
487                                                         xtype: 'ComboBox',
488                                                         xns: Roo.form,
489                                                         allowBlank : 'false',
490                                                         displayField : 'etype',
491                                                         editable : 'false',
492                                                         emptyText : "Select core_enum",
493                                                         fieldLabel : 'Resolution',
494                                                         forceSelection : true,
495                                                         hiddenName : 'resolution_id',
496                                                         listWidth : 400,
497                                                         loadingText : "Searching...",
498                                                         minChars : 2,
499                                                         name : 'resolution_id_etype',
500                                                         pageSize : 20,
501                                                         qtip : "Select core_enum",
502                                                         queryParam : 'query[etype]',
503                                                         selectOnFocus : true,
504                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
505                                                         triggerAction : 'all',
506                                                         typeAhead : true,
507                                                         valueField : 'id',
508                                                         width : 180,
509                                                         store : {
510                                                             xtype: 'Store',
511                                                             xns: Roo.data,
512                                                             remoteSort : true,
513                                                             sortInfo : { direction : 'ASC', field: 'id' },
514                                                             listeners : {
515                                                                 beforeload : function (_self, o){
516                                                                     o.params = o.params || {};
517                                                                     // set more here
518                                                                 }
519                                                             },
520                                                             proxy : {
521                                                                 xtype: 'HttpProxy',
522                                                                 xns: Roo.data,
523                                                                 method : 'GET',
524                                                                 url : baseURL + '/Roo/core_enum.php'
525                                                             },
526                                                             reader : {
527                                                                 xtype: 'JsonReader',
528                                                                 xns: Roo.data,
529                                                                 id : 'id',
530                                                                 root : 'data',
531                                                                 totalProperty : 'total',
532                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
533                                                             }
534                                                         }
535                                                     },
536                                                     {
537                                                         xtype: 'NumberField',
538                                                         xns: Roo.form,
539                                                         style : 'align:right;',
540                                                         fieldLabel : 'Estimated',
541                                                         name : 'estimated',
542                                                         width : 75
543                                                     },
544                                                     {
545                                                         xtype: 'NumberField',
546                                                         xns: Roo.form,
547                                                         fieldLabel : 'Spent',
548                                                         name : 'spent',
549                                                         width : 75
550                                                     },
551                                                     {
552                                                         xtype: 'DisplayField',
553                                                         xns: Roo.form,
554                                                         fieldLabel : 'Created',
555                                                         name : 'created_when'
556                                                     },
557                                                     {
558                                                         xtype: 'DisplayField',
559                                                         xns: Roo.form,
560                                                         fieldLabel : 'Last Updated',
561                                                         name : 'updated_when'
562                                                     }
563                                                 ]
564                                             }
565                                         ]
566                                     },
567                                     {
568                                         xtype: 'Column',
569                                         xns: Roo.form,
570                                         style : 'margin-left:10px',
571                                         width : '420px',
572                                         items : [
573                                             {
574                                                 xtype: 'FieldSet',
575                                                 xns: Roo.form,
576                                                 labelAlign : 'top',
577                                                 legend : "Summary / Details",
578                                                 items : [
579                                                     {
580                                                         xtype: 'TextField',
581                                                         xns: Roo.form,
582                                                         fieldLabel : 'Summary',
583                                                         name : 'summary',
584                                                         width : 400
585                                                     },
586                                                     {
587                                                         xtype: 'TextArea',
588                                                         xns: Roo.form,
589                                                         fieldLabel : 'Description',
590                                                         height : 200,
591                                                         name : 'description',
592                                                         width : 400
593                                                     }
594                                                 ]
595                                             },
596                                             {
597                                                 xtype: 'FieldSet',
598                                                 xns: Roo.form,
599                                                 labelAlign : 'top',
600                                                 legend : "Add Comment",
601                                                 items : [
602                                                     {
603                                                         xtype: 'TextArea',
604                                                         xns: Roo.form,
605                                                         fieldLabel : 'Comment',
606                                                         height : 150,
607                                                         name : 'comment',
608                                                         width : 400
609                                                     },
610                                                     {
611                                                         xtype: 'Button',
612                                                         xns: Roo,
613                                                         text : "Add Comment"
614                                                     }
615                                                 ]
616                                             },
617                                             {
618                                                 xtype: 'FieldSet',
619                                                 xns: Roo.form,
620                                                 labelAlign : 'top',
621                                                 legend : "History",
622                                                 items : [
623                                                     {
624                                                         xtype: 'DisplayField',
625                                                         xns: Roo.form,
626                                                         value : "... last few items of history goes in here.."
627                                                     }
628                                                 ]
629                                             }
630                                         ]
631                                     },
632                                     {
633                                         xtype: 'Column',
634                                         xns: Roo.form,
635                                         style : 'margin-left: 10px',
636                                         width : 200,
637                                         items : [
638                                             {
639                                                 xtype: 'FieldSet',
640                                                 xns: Roo.form,
641                                                 labelAlign : 'top',
642                                                 legend : "Schedule Work",
643                                                 items : [
644                                                     {
645                                                         xtype: 'DateField',
646                                                         xns: Roo.form,
647                                                         fieldLabel : 'Tagged to start on'
648                                                     }
649                                                 ]
650                                             },
651                                             {
652                                                 xtype: 'FieldSet',
653                                                 xns: Roo.form,
654                                                 labelAlign : 'top',
655                                                 legend : "Attachments",
656                                                 items : [
657                                                     {
658                                                         xtype: 'TextField',
659                                                         xns: Roo.form,
660                                                         fieldLabel : 'Add File',
661                                                         inputType : 'file',
662                                                         name : 'files[]',
663                                                         qtip : ""
664                                                     }
665                                                 ]
666                                             },
667                                             {
668                                                 xtype: 'FieldSet',
669                                                 xns: Roo.form,
670                                                 labelAlign : 'top',
671                                                 legend : "Watching",
672                                                 items : [
673                                                     {
674                                                         xtype: 'ComboBox',
675                                                         xns: Roo.form,
676                                                         displayField : 'name',
677                                                         emptyText : "Select Person",
678                                                         fieldLabel : 'Person',
679                                                         forceSelection : true,
680                                                         hiddenName : 'watcher_add_id',
681                                                         listWidth : 400,
682                                                         loadingText : "Searching...",
683                                                         minChars : 2,
684                                                         name : 'watcher_add',
685                                                         pageSize : 20,
686                                                         qtip : "Select Person",
687                                                         queryParam : 'query[name]',
688                                                         selectOnFocus : true,
689                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
690                                                         triggerAction : 'all',
691                                                         typeAhead : true,
692                                                         valueField : 'id',
693                                                         width : 180,
694                                                         store : {
695                                                             xtype: 'Store',
696                                                             xns: Roo.data,
697                                                             remoteSort : true,
698                                                             sortInfo : { direction : 'ASC', field: 'id' },
699                                                             listeners : {
700                                                                 beforeload : function (_self, o){
701                                                                     o.params = o.params || {};
702                                                                     // set more here
703                                                                 }
704                                                             },
705                                                             proxy : {
706                                                                 xtype: 'HttpProxy',
707                                                                 xns: Roo.data,
708                                                                 method : 'GET',
709                                                                 url : baseURL + '/Roo/Person.php'
710                                                             },
711                                                             reader : {
712                                                                 xtype: 'JsonReader',
713                                                                 xns: Roo.data,
714                                                                 id : 'id',
715                                                                 root : 'data',
716                                                                 totalProperty : 'total',
717                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
718                                                             }
719                                                         }
720                                                     },
721                                                     {
722                                                         xtype: 'DisplayField',
723                                                         xns: Roo.form,
724                                                         value : "..existing watchers..."
725                                                     }
726                                                 ]
727                                             },
728                                             {
729                                                 xtype: 'FieldSet',
730                                                 xns: Roo.form,
731                                                 labelSeparator : '&nbsp;',
732                                                 labelWidth : 1,
733                                                 legend : "Change Status",
734                                                 items : [
735                                                     {
736                                                         xtype: 'Radio',
737                                                         xns: Roo.form,
738                                                         boxLabel : 'Leave status as NEW',
739                                                         name : 'leave'
740                                                     },
741                                                     {
742                                                         xtype: 'Radio',
743                                                         xns: Roo.form,
744                                                         boxLabel : 'Leave status as NEW',
745                                                         name : 'leave'
746                                                     },
747                                                     {
748                                                         xtype: 'Radio',
749                                                         xns: Roo.form,
750                                                         boxLabel : 'Leave status as NEW',
751                                                         name : 'leave'
752                                                     },
753                                                     {
754                                                         xtype: 'Radio',
755                                                         xns: Roo.form,
756                                                         boxLabel : 'Leave status as NEW',
757                                                         name : 'leave'
758                                                     },
759                                                     {
760                                                         xtype: 'Radio',
761                                                         xns: Roo.form,
762                                                         boxLabel : 'Leave status as NEW',
763                                                         name : 'leave'
764                                                     }
765                                                 ]
766                                             },
767                                             {
768                                                 xtype: 'FieldSet',
769                                                 xns: Roo.form,
770                                                 labelAlign : 'top',
771                                                 legend : "Logged work",
772                                                 items : [
773                                                     {
774                                                         xtype: 'DisplayField',
775                                                         xns: Roo.form,
776                                                         value : "... timesheet references?..."
777                                                     }
778                                                 ]
779                                             }
780                                         ]
781                                     },
782                                     {
783                                         xtype: 'Hidden',
784                                         xns: Roo.form,
785                                         name : 'id'
786                                     }
787                                 ]
788                             }
789                         ],
790                         toolbar : {
791                             xtype: 'Toolbar',
792                             xns: Roo,
793                             items : [
794                                 {
795                                     xtype: 'Button',
796                                     xns: Roo.Toolbar,
797                                     text : "Save Changes"
798                                 },
799                                 {
800                                     xtype: 'Fill',
801                                     xns: Roo.Toolbar
802                                 },
803                                 {
804                                     xtype: 'Button',
805                                     xns: Roo.Toolbar,
806                                     text : "Cancel"
807                                 }
808                             ]
809                         }
810                     },
811                     {
812                         xtype: 'ContentPanel',
813                         xns: Roo,
814                         background : true,
815                         region : 'east',
816                         title : "Full history"
817                     }
818                 ],
819                 center : {
820                     xtype: 'LayoutRegion',
821                     xns: Roo
822                 },
823                 east : {
824                     xtype: 'LayoutRegion',
825                     xns: Roo,
826                     collapsible : true,
827                     tabPosition : 'top',
828                     title : "Ticket Details",
829                     width : 850
830                 },
831                 center : {
832                     xtype: 'LayoutRegion',
833                     xns: Roo
834                 }
835             }
836         };
837     }
838 });