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: 'GridPanel',
25                         xns: Roo,
26                         title : "mtrack_ticket",
27                         fitToframe : true,
28                         fitContainer : true,
29                         tableName : 'mtrack_ticket',
30                         background : true,
31                         region : 'center',
32                         listeners : {
33                             activate : function() {
34                                 _this.panel = this;
35                                 if (_this.grid) {
36                                     _this.grid.footer.onClick('first');
37                                 }
38                             }
39                         },
40                         grid : {
41                             xtype: 'Grid',
42                             xns: Roo.grid,
43                             autoExpandColumn : 'summary',
44                             loadMask : true,
45                             listeners : {
46                                 render : function() 
47                                 {
48                                     _this.grid = this; 
49                                     //_this.dialog = Pman.Dialog.FILL_IN
50                                     if (_this.panel.active) {
51                                        this.footer.onClick('first');
52                                     }
53                                 },
54                                 rowdblclick : function (_self, rowIndex, e)
55                                 {
56                                     if (!_this.dialog) return;
57                                     _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
58                                         _this.grid.footer.onClick('first');
59                                     }); 
60                                 }
61                             },
62                             dataSource : {
63                                 xtype: 'Store',
64                                 xns: Roo.data,
65                                 remoteSort : true,
66                                 sortInfo : { field : 'summary', direction: 'ASC' },
67                                 proxy : {
68                                     xtype: 'HttpProxy',
69                                     xns: Roo.data,
70                                     method : 'GET',
71                                     url : baseURL + '/Roo/mtrack_ticket.php'
72                                 },
73                                 reader : {
74                                     xtype: 'JsonReader',
75                                     xns: Roo.data,
76                                     totalProperty : 'total',
77                                     root : 'data',
78                                     id : 'id',
79                                     fields : [
80                                         {
81                                             'name': 'id',
82                                             'type': 'int'
83                                         },
84                                         {
85                                             'name': 'summary',
86                                             'type': 'string'
87                                         },
88                                         {
89                                             'name': 'description',
90                                             'type': 'string'
91                                         },
92                                         {
93                                             'name': 'changelog',
94                                             'type': 'string'
95                                         },
96                                         {
97                                             'name': 'created',
98                                             'type': 'int'
99                                         },
100                                         {
101                                             'name': 'updated',
102                                             'type': 'int'
103                                         },
104                                         {
105                                             'name': 'owner_id',
106                                             'type': 'int'
107                                         },
108                                         {
109                                             'name': 'priority_id',
110                                             'type': 'int'
111                                         },
112                                         {
113                                             'name': 'severity_id',
114                                             'type': 'int'
115                                         },
116                                         {
117                                             'name': 'classification_id',
118                                             'type': 'int'
119                                         },
120                                         {
121                                             'name': 'resolution_id',
122                                             'type': 'int'
123                                         },
124                                         {
125                                             'name': 'cc',
126                                             'type': 'string'
127                                         },
128                                         {
129                                             'name': 'status',
130                                             'type': 'int'
131                                         },
132                                         {
133                                             'name': 'estimated',
134                                             'type': 'float'
135                                         },
136                                         {
137                                             'name': 'spent',
138                                             'type': 'float'
139                                         },
140                                         {
141                                             'name': 'x_fieldname',
142                                             'type': 'string'
143                                         },
144                                         {
145                                             'name': 'project_id',
146                                             'type': 'int'
147                                         },
148                                         {
149                                             'name': 'developer_id',
150                                             'type': 'int'
151                                         },
152                                         {
153                                             'name': 'milestone_id',
154                                             'type': 'int'
155                                         },
156                                         {
157                                             'name': 'updated_id',
158                                             'type': 'int'
159                                         },
160                                         {
161                                             'name': 'updated_person_id',
162                                             'type': 'int'
163                                         },
164                                         {
165                                             'name': 'updated_ontable',
166                                             'type': 'string'
167                                         },
168                                         {
169                                             'name': 'updated_onid',
170                                             'type': 'int'
171                                         },
172                                         {
173                                             'name': 'updated_changedate',
174                                             'type': 'date'
175                                         },
176                                         {
177                                             'name': 'updated_reason',
178                                             'type': 'string'
179                                         },
180                                         {
181                                             'name': 'created_id',
182                                             'type': 'int'
183                                         },
184                                         {
185                                             'name': 'created_person_id',
186                                             'type': 'int'
187                                         },
188                                         {
189                                             'name': 'created_ontable',
190                                             'type': 'string'
191                                         },
192                                         {
193                                             'name': 'created_onid',
194                                             'type': 'int'
195                                         },
196                                         {
197                                             'name': 'created_changedate',
198                                             'type': 'date'
199                                         },
200                                         {
201                                             'name': 'created_reason',
202                                             'type': 'string'
203                                         },
204                                         {
205                                             'name': 'owner_id_id',
206                                             'type': 'int'
207                                         },
208                                         {
209                                             'name': 'owner_id_office_id',
210                                             'type': 'int'
211                                         },
212                                         {
213                                             'name': 'owner_id_name',
214                                             'type': 'string'
215                                         },
216                                         {
217                                             'name': 'owner_id_phone',
218                                             'type': 'string'
219                                         },
220                                         {
221                                             'name': 'owner_id_fax',
222                                             'type': 'string'
223                                         },
224                                         {
225                                             'name': 'owner_id_email',
226                                             'type': 'string'
227                                         },
228                                         {
229                                             'name': 'owner_id_company_id',
230                                             'type': 'int'
231                                         },
232                                         {
233                                             'name': 'owner_id_role',
234                                             'type': 'string'
235                                         },
236                                         {
237                                             'name': 'owner_id_active',
238                                             'type': 'int'
239                                         },
240                                         {
241                                             'name': 'owner_id_remarks',
242                                             'type': 'string'
243                                         },
244                                         {
245                                             'name': 'owner_id_passwd',
246                                             'type': 'string'
247                                         },
248                                         {
249                                             'name': 'owner_id_owner_id',
250                                             'type': 'int'
251                                         },
252                                         {
253                                             'name': 'owner_id_lang',
254                                             'type': 'string'
255                                         },
256                                         {
257                                             'name': 'owner_id_no_reset_sent',
258                                             'type': 'int'
259                                         },
260                                         {
261                                             'name': 'owner_id_action_type',
262                                             'type': 'string'
263                                         },
264                                         {
265                                             'name': 'owner_id_project_id',
266                                             'type': 'int'
267                                         },
268                                         {
269                                             'name': 'owner_id_deleted_by',
270                                             'type': 'int'
271                                         },
272                                         {
273                                             'name': 'owner_id_deleted_dt',
274                                             'type': 'date'
275                                         },
276                                         {
277                                             'name': 'developer_id_id',
278                                             'type': 'int'
279                                         },
280                                         {
281                                             'name': 'developer_id_office_id',
282                                             'type': 'int'
283                                         },
284                                         {
285                                             'name': 'developer_id_name',
286                                             'type': 'string'
287                                         },
288                                         {
289                                             'name': 'developer_id_phone',
290                                             'type': 'string'
291                                         },
292                                         {
293                                             'name': 'developer_id_fax',
294                                             'type': 'string'
295                                         },
296                                         {
297                                             'name': 'developer_id_email',
298                                             'type': 'string'
299                                         },
300                                         {
301                                             'name': 'developer_id_company_id',
302                                             'type': 'int'
303                                         },
304                                         {
305                                             'name': 'developer_id_role',
306                                             'type': 'string'
307                                         },
308                                         {
309                                             'name': 'developer_id_active',
310                                             'type': 'int'
311                                         },
312                                         {
313                                             'name': 'developer_id_remarks',
314                                             'type': 'string'
315                                         },
316                                         {
317                                             'name': 'developer_id_passwd',
318                                             'type': 'string'
319                                         },
320                                         {
321                                             'name': 'developer_id_owner_id',
322                                             'type': 'int'
323                                         },
324                                         {
325                                             'name': 'developer_id_lang',
326                                             'type': 'string'
327                                         },
328                                         {
329                                             'name': 'developer_id_no_reset_sent',
330                                             'type': 'int'
331                                         },
332                                         {
333                                             'name': 'developer_id_action_type',
334                                             'type': 'string'
335                                         },
336                                         {
337                                             'name': 'developer_id_project_id',
338                                             'type': 'int'
339                                         },
340                                         {
341                                             'name': 'developer_id_deleted_by',
342                                             'type': 'int'
343                                         },
344                                         {
345                                             'name': 'developer_id_deleted_dt',
346                                             'type': 'date'
347                                         },
348                                         {
349                                             'name': 'priority_id_id',
350                                             'type': 'int'
351                                         },
352                                         {
353                                             'name': 'priority_id_etype',
354                                             'type': 'string'
355                                         },
356                                         {
357                                             'name': 'priority_id_name',
358                                             'type': 'string'
359                                         },
360                                         {
361                                             'name': 'priority_id_active',
362                                             'type': 'int'
363                                         },
364                                         {
365                                             'name': 'priority_id_seqid',
366                                             'type': 'int'
367                                         },
368                                         {
369                                             'name': 'severity_id_id',
370                                             'type': 'int'
371                                         },
372                                         {
373                                             'name': 'severity_id_etype',
374                                             'type': 'string'
375                                         },
376                                         {
377                                             'name': 'severity_id_name',
378                                             'type': 'string'
379                                         },
380                                         {
381                                             'name': 'severity_id_active',
382                                             'type': 'int'
383                                         },
384                                         {
385                                             'name': 'severity_id_seqid',
386                                             'type': 'int'
387                                         },
388                                         {
389                                             'name': 'classification_id_id',
390                                             'type': 'int'
391                                         },
392                                         {
393                                             'name': 'classification_id_etype',
394                                             'type': 'string'
395                                         },
396                                         {
397                                             'name': 'classification_id_name',
398                                             'type': 'string'
399                                         },
400                                         {
401                                             'name': 'classification_id_active',
402                                             'type': 'int'
403                                         },
404                                         {
405                                             'name': 'classification_id_seqid',
406                                             'type': 'int'
407                                         },
408                                         {
409                                             'name': 'resolution_id_id',
410                                             'type': 'int'
411                                         },
412                                         {
413                                             'name': 'resolution_id_etype',
414                                             'type': 'string'
415                                         },
416                                         {
417                                             'name': 'resolution_id_name',
418                                             'type': 'string'
419                                         },
420                                         {
421                                             'name': 'resolution_id_active',
422                                             'type': 'int'
423                                         },
424                                         {
425                                             'name': 'resolution_id_seqid',
426                                             'type': 'int'
427                                         },
428                                         {
429                                             'name': 'status_id',
430                                             'type': 'int'
431                                         },
432                                         {
433                                             'name': 'status_etype',
434                                             'type': 'string'
435                                         },
436                                         {
437                                             'name': 'status_name',
438                                             'type': 'string'
439                                         },
440                                         {
441                                             'name': 'status_active',
442                                             'type': 'int'
443                                         },
444                                         {
445                                             'name': 'status_seqid',
446                                             'type': 'int'
447                                         },
448                                         {
449                                             'name': 'project_id_id',
450                                             'type': 'int'
451                                         },
452                                         {
453                                             'name': 'project_id_name',
454                                             'type': 'string'
455                                         },
456                                         {
457                                             'name': 'project_id_remarks',
458                                             'type': 'string'
459                                         },
460                                         {
461                                             'name': 'project_id_owner_id',
462                                             'type': 'int'
463                                         },
464                                         {
465                                             'name': 'project_id_code',
466                                             'type': 'string'
467                                         },
468                                         {
469                                             'name': 'project_id_active',
470                                             'type': 'int'
471                                         },
472                                         {
473                                             'name': 'project_id_type',
474                                             'type': 'string'
475                                         },
476                                         {
477                                             'name': 'project_id_client_id',
478                                             'type': 'int'
479                                         },
480                                         {
481                                             'name': 'project_id_team_id',
482                                             'type': 'int'
483                                         },
484                                         {
485                                             'name': 'project_id_file_location',
486                                             'type': 'string'
487                                         },
488                                         {
489                                             'name': 'project_id_open_date',
490                                             'type': 'date'
491                                         },
492                                         {
493                                             'name': 'project_id_open_by',
494                                             'type': 'int'
495                                         },
496                                         {
497                                             'name': 'project_id_close_date',
498                                             'type': 'date'
499                                         },
500                                         {
501                                             'name': 'project_id_countries',
502                                             'type': 'string'
503                                         },
504                                         {
505                                             'name': 'project_id_languages',
506                                             'type': 'string'
507                                         },
508                                         {
509                                             'name': 'project_id_agency_id',
510                                             'type': 'int'
511                                         },
512                                         {
513                                             'name': 'milestone_id_id',
514                                             'type': 'int'
515                                         },
516                                         {
517                                             'name': 'milestone_id_name',
518                                             'type': 'string'
519                                         },
520                                         {
521                                             'name': 'milestone_id_description',
522                                             'type': 'string'
523                                         },
524                                         {
525                                             'name': 'milestone_id_startdate',
526                                             'type': 'date'
527                                         },
528                                         {
529                                             'name': 'milestone_id_duedate',
530                                             'type': 'date'
531                                         },
532                                         {
533                                             'name': 'milestone_id_completed',
534                                             'type': 'date'
535                                         },
536                                         {
537                                             'name': 'milestone_id_deleted',
538                                             'type': 'int'
539                                         },
540                                         {
541                                             'name': 'milestone_id_created',
542                                             'type': 'int'
543                                         },
544                                         {
545                                             'name': 'milestone_id_updated',
546                                             'type': 'int'
547                                         },
548                                         {
549                                             'name': 'milestone_id_project_id',
550                                             'type': 'int'
551                                         }
552                                     ]
553                                 }
554                             },
555                             footer : {
556                                 xtype: 'PagingToolbar',
557                                 xns: Roo,
558                                 pageSize : 25,
559                                 displayInfo : true,
560                                 displayMsg : 'Displaying mtrack_ticket{0} - {1} of {2}',
561                                 emptyMsg : 'No mtrack_ticket found'
562                             },
563                             toolbar : {
564                                 xtype: 'Toolbar',
565                                 xns: Roo,
566                                 items : [
567                                     {
568                                         xtype: 'Button',
569                                         xns: Roo.Toolbar,
570                                         text : "Add",
571                                         cls : 'x-btn-text-icon',
572                                         icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
573                                         listeners : {
574                                             click : function()
575                                             {
576                                                 if (!_this.dialog) return;
577                                                 _this.dialog.show( { id : 0 } , function() {
578                                                     _this.grid.footer.onClick('first');
579                                                }); 
580                                             }
581                                         }
582                                     },
583                                     {
584                                         xtype: 'Button',
585                                         xns: Roo.Toolbar,
586                                         text : "Edit",
587                                         cls : 'x-btn-text-icon',
588                                         icon : Roo.rootURL + 'images/default/tree/leaf.gif',
589                                         listeners : {
590                                             click : function()
591                                             {
592                                                 var s = _this.grid.getSelectionModel().getSelections();
593                                                 if (!s.length || (s.length > 1))  {
594                                                     Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
595                                                     return;
596                                                 }
597                                                 if (!_this.dialog) return;
598                                                 _this.dialog.show(s[0].data, function() {
599                                                     _this.grid.footer.onClick('first');
600                                                 }); 
601                                                 
602                                             }
603                                         }
604                                     },
605                                     {
606                                         xtype: 'Button',
607                                         xns: Roo.Toolbar,
608                                         text : "Delete",
609                                         cls : 'x-btn-text-icon',
610                                         icon : rootURL + '/Pman/templates/images/trash.gif',
611                                         listeners : {
612                                             click : function()
613                                             {
614                                                  Pman.genericDelete(_this, 'mtrack_ticket'); 
615                                             }
616                                         }
617                                     }
618                                 ]
619                             },
620                             colModel : [
621                                 {
622                                     xtype: 'ColumnModel',
623                                     xns: Roo.grid,
624                                     header : 'Id',
625                                     width : 75,
626                                     dataIndex : 'id',
627                                     renderer : function(v) { return String.format('{0}', v); }
628                                 },
629                                 {
630                                     xtype: 'ColumnModel',
631                                     xns: Roo.grid,
632                                     header : 'Project',
633                                     width : 75,
634                                     dataIndex : 'project_id',
635                                     renderer : function(v) { return String.format('{0}', v); }
636                                 },
637                                 {
638                                     xtype: 'ColumnModel',
639                                     xns: Roo.grid,
640                                     header : 'Summary',
641                                     width : 200,
642                                     dataIndex : 'summary',
643                                     renderer : function(v) { return String.format('{0}', v); }
644                                 },
645                                 {
646                                     xtype: 'ColumnModel',
647                                     xns: Roo.grid,
648                                     header : 'Description',
649                                     width : 200,
650                                     dataIndex : 'description',
651                                     renderer : function(v) { return String.format('{0}', v); }
652                                 },
653                                 {
654                                     xtype: 'ColumnModel',
655                                     xns: Roo.grid,
656                                     header : 'Owner',
657                                     width : 75,
658                                     dataIndex : 'owner_id',
659                                     renderer : function(v) { return String.format('{0}', v); }
660                                 },
661                                 {
662                                     xtype: 'ColumnModel',
663                                     xns: Roo.grid,
664                                     header : 'Created',
665                                     width : 75,
666                                     dataIndex : 'created',
667                                     renderer : function(v) { return String.format('{0}', v); }
668                                 },
669                                 {
670                                     xtype: 'ColumnModel',
671                                     xns: Roo.grid,
672                                     header : 'Updated',
673                                     width : 75,
674                                     dataIndex : 'updated',
675                                     renderer : function(v) { return String.format('{0}', v); }
676                                 },
677                                 {
678                                     xtype: 'ColumnModel',
679                                     xns: Roo.grid,
680                                     header : 'Priority',
681                                     width : 75,
682                                     dataIndex : 'priority_id',
683                                     renderer : function(v) { return String.format('{0}', v); }
684                                 },
685                                 {
686                                     xtype: 'ColumnModel',
687                                     xns: Roo.grid,
688                                     header : 'Severity',
689                                     width : 75,
690                                     dataIndex : 'severity_id',
691                                     renderer : function(v) { return String.format('{0}', v); }
692                                 },
693                                 {
694                                     xtype: 'ColumnModel',
695                                     xns: Roo.grid,
696                                     header : 'Classification',
697                                     width : 75,
698                                     dataIndex : 'classification_id',
699                                     renderer : function(v) { return String.format('{0}', v); }
700                                 },
701                                 {
702                                     xtype: 'ColumnModel',
703                                     xns: Roo.grid,
704                                     header : 'Estimated',
705                                     width : 75,
706                                     dataIndex : 'estimated',
707                                     renderer : function(v) { return String.format('{0}', v); }
708                                 },
709                                 {
710                                     xtype: 'ColumnModel',
711                                     xns: Roo.grid,
712                                     header : 'Spent',
713                                     width : 75,
714                                     dataIndex : 'spent',
715                                     renderer : function(v) { return String.format('{0}', v); }
716                                 },
717                                 {
718                                     xtype: 'ColumnModel',
719                                     xns: Roo.grid,
720                                     header : 'Project',
721                                     width : 75,
722                                     dataIndex : 'project_id',
723                                     renderer : function(v) { return String.format('{0}', v); }
724                                 },
725                                 {
726                                     xtype: 'ColumnModel',
727                                     xns: Roo.grid,
728                                     header : 'Developer',
729                                     width : 75,
730                                     dataIndex : 'developer_id',
731                                     renderer : function(v) { return String.format('{0}', v); }
732                                 },
733                                 {
734                                     xtype: 'ColumnModel',
735                                     xns: Roo.grid,
736                                     header : 'Milestone',
737                                     width : 75,
738                                     dataIndex : 'milestone_id',
739                                     renderer : function(v) { return String.format('{0}', v); }
740                                 }
741                             ]
742                         }
743                     },
744                     {
745                         xtype: 'ContentPanel',
746                         xns: Roo,
747                         autoScroll : true,
748                         region : 'east',
749                         title : "Add / Edit Ticket",
750                         adjustments : [30, 30],
751                         items : [
752                             {
753                                 xtype: 'Form',
754                                 xns: Roo.form,
755                                 listeners : {
756                                     actioncomplete : function(_self,action)
757                                     {
758                                         if (action.type == 'setdata') {
759                                            //_this.dialog.el.mask("Loading");
760                                            //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
761                                            return;
762                                         }
763                                         if (action.type == 'load') {
764                                             _this.dialog.el.unmask();
765                                             return;
766                                         }
767                                         if (action.type =='submit') {
768                                         
769                                             _this.dialog.el.unmask();
770                                             _this.dialog.hide();
771                                         
772                                              if (_this.callback) {
773                                                 _this.callback.call(_this, _this.form.getValues());
774                                              }
775                                              _this.form.reset();
776                                              return;
777                                         }
778                                     },
779                                     rendered : function (form)
780                                     {
781                                         _this.form= form;
782                                     }
783                                 },
784                                 method : 'POST',
785                                 style : 'margin:10px;width:1000px;',
786                                 url : baseURL + '/Roo/mtrack_ticket.php',
787                                 items : [
788                                     {
789                                         xtype: 'Column',
790                                         xns: Roo.form,
791                                         width : 200,
792                                         items : [
793                                             {
794                                                 xtype: 'FieldSet',
795                                                 xns: Roo.form,
796                                                 labelAlign : 'top',
797                                                 legend : "Properties",
798                                                 items : [
799                                                     {
800                                                         xtype: 'ComboBox',
801                                                         xns: Roo.form,
802                                                         allowBlank : 'false',
803                                                         displayField : 'name',
804                                                         editable : 'false',
805                                                         emptyText : "Select Projects",
806                                                         fieldLabel : 'Project',
807                                                         forceSelection : true,
808                                                         hiddenName : 'project_id',
809                                                         listWidth : 400,
810                                                         loadingText : "Searching...",
811                                                         minChars : 2,
812                                                         name : 'project_id_name',
813                                                         pageSize : 20,
814                                                         qtip : "Select Projects",
815                                                         queryParam : 'query[name]',
816                                                         selectOnFocus : true,
817                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
818                                                         triggerAction : 'all',
819                                                         typeAhead : true,
820                                                         valueField : 'id',
821                                                         width : 180,
822                                                         store : {
823                                                             xtype: 'Store',
824                                                             xns: Roo.data,
825                                                             remoteSort : true,
826                                                             sortInfo : { direction : 'ASC', field: 'id' },
827                                                             listeners : {
828                                                                 beforeload : function (_self, o){
829                                                                     o.params = o.params || {};
830                                                                     // set more here
831                                                                 }
832                                                             },
833                                                             proxy : {
834                                                                 xtype: 'HttpProxy',
835                                                                 xns: Roo.data,
836                                                                 method : 'GET',
837                                                                 url : baseURL + '/Roo/Projects.php'
838                                                             },
839                                                             reader : {
840                                                                 xtype: 'JsonReader',
841                                                                 xns: Roo.data,
842                                                                 id : 'id',
843                                                                 root : 'data',
844                                                                 totalProperty : 'total',
845                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
846                                                             }
847                                                         }
848                                                     },
849                                                     {
850                                                         xtype: 'ComboBox',
851                                                         xns: Roo.form,
852                                                         allowBlank : 'false',
853                                                         displayField : 'name',
854                                                         editable : 'false',
855                                                         emptyText : "Select mtrack_milestone",
856                                                         fieldLabel : 'Milestone',
857                                                         forceSelection : true,
858                                                         hiddenName : 'milestone_id',
859                                                         listWidth : 400,
860                                                         loadingText : "Searching...",
861                                                         minChars : 2,
862                                                         name : 'milestone_id_name',
863                                                         pageSize : 20,
864                                                         qtip : "Select mtrack_milestone",
865                                                         queryParam : 'query[name]',
866                                                         selectOnFocus : true,
867                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
868                                                         triggerAction : 'all',
869                                                         typeAhead : true,
870                                                         valueField : 'id',
871                                                         width : 180,
872                                                         store : {
873                                                             xtype: 'Store',
874                                                             xns: Roo.data,
875                                                             remoteSort : true,
876                                                             sortInfo : { direction : 'ASC', field: 'id' },
877                                                             listeners : {
878                                                                 beforeload : function (_self, o){
879                                                                     o.params = o.params || {};
880                                                                     // set more here
881                                                                 }
882                                                             },
883                                                             proxy : {
884                                                                 xtype: 'HttpProxy',
885                                                                 xns: Roo.data,
886                                                                 method : 'GET',
887                                                                 url : baseURL + '/Roo/mtrack_milestone.php'
888                                                             },
889                                                             reader : {
890                                                                 xtype: 'JsonReader',
891                                                                 xns: Roo.data,
892                                                                 id : 'id',
893                                                                 root : 'data',
894                                                                 totalProperty : 'total',
895                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
896                                                             }
897                                                         }
898                                                     },
899                                                     {
900                                                         xtype: 'ComboBox',
901                                                         xns: Roo.form,
902                                                         allowBlank : 'false',
903                                                         displayField : 'etype',
904                                                         editable : 'false',
905                                                         emptyText : "Select core_enum",
906                                                         fieldLabel : 'Priority',
907                                                         forceSelection : true,
908                                                         hiddenName : 'priority_id',
909                                                         listWidth : 400,
910                                                         loadingText : "Searching...",
911                                                         minChars : 2,
912                                                         name : 'priority_id_etype',
913                                                         pageSize : 20,
914                                                         qtip : "Select core_enum",
915                                                         queryParam : 'query[etype]',
916                                                         selectOnFocus : true,
917                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
918                                                         triggerAction : 'all',
919                                                         typeAhead : true,
920                                                         valueField : 'id',
921                                                         width : 180,
922                                                         store : {
923                                                             xtype: 'Store',
924                                                             xns: Roo.data,
925                                                             remoteSort : true,
926                                                             sortInfo : { direction : 'ASC', field: 'id' },
927                                                             listeners : {
928                                                                 beforeload : function (_self, o){
929                                                                     o.params = o.params || {};
930                                                                     // set more here
931                                                                 }
932                                                             },
933                                                             proxy : {
934                                                                 xtype: 'HttpProxy',
935                                                                 xns: Roo.data,
936                                                                 method : 'GET',
937                                                                 url : baseURL + '/Roo/core_enum.php'
938                                                             },
939                                                             reader : {
940                                                                 xtype: 'JsonReader',
941                                                                 xns: Roo.data,
942                                                                 id : 'id',
943                                                                 root : 'data',
944                                                                 totalProperty : 'total',
945                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
946                                                             }
947                                                         }
948                                                     },
949                                                     {
950                                                         xtype: 'ComboBox',
951                                                         xns: Roo.form,
952                                                         allowBlank : 'false',
953                                                         displayField : 'etype',
954                                                         editable : 'false',
955                                                         emptyText : "Select core_enum",
956                                                         fieldLabel : 'Severity',
957                                                         forceSelection : true,
958                                                         hiddenName : 'severity_id',
959                                                         listWidth : 400,
960                                                         loadingText : "Searching...",
961                                                         minChars : 2,
962                                                         name : 'severity_id_etype',
963                                                         pageSize : 20,
964                                                         qtip : "Select core_enum",
965                                                         queryParam : 'query[etype]',
966                                                         selectOnFocus : true,
967                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
968                                                         triggerAction : 'all',
969                                                         typeAhead : true,
970                                                         valueField : 'id',
971                                                         width : 180,
972                                                         store : {
973                                                             xtype: 'Store',
974                                                             xns: Roo.data,
975                                                             remoteSort : true,
976                                                             sortInfo : { direction : 'ASC', field: 'id' },
977                                                             listeners : {
978                                                                 beforeload : function (_self, o){
979                                                                     o.params = o.params || {};
980                                                                     // set more here
981                                                                 }
982                                                             },
983                                                             proxy : {
984                                                                 xtype: 'HttpProxy',
985                                                                 xns: Roo.data,
986                                                                 method : 'GET',
987                                                                 url : baseURL + '/Roo/core_enum.php'
988                                                             },
989                                                             reader : {
990                                                                 xtype: 'JsonReader',
991                                                                 xns: Roo.data,
992                                                                 id : 'id',
993                                                                 root : 'data',
994                                                                 totalProperty : 'total',
995                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
996                                                             }
997                                                         }
998                                                     },
999                                                     {
1000                                                         xtype: 'ComboBox',
1001                                                         xns: Roo.form,
1002                                                         allowBlank : 'false',
1003                                                         displayField : 'etype',
1004                                                         editable : 'false',
1005                                                         emptyText : "Select core_enum",
1006                                                         fieldLabel : 'Classification',
1007                                                         forceSelection : true,
1008                                                         hiddenName : 'classification_id',
1009                                                         listWidth : 400,
1010                                                         loadingText : "Searching...",
1011                                                         minChars : 2,
1012                                                         name : 'classification_id_etype',
1013                                                         pageSize : 20,
1014                                                         qtip : "Select core_enum",
1015                                                         queryParam : 'query[etype]',
1016                                                         selectOnFocus : true,
1017                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1018                                                         triggerAction : 'all',
1019                                                         typeAhead : true,
1020                                                         valueField : 'id',
1021                                                         width : 180,
1022                                                         store : {
1023                                                             xtype: 'Store',
1024                                                             xns: Roo.data,
1025                                                             remoteSort : true,
1026                                                             sortInfo : { direction : 'ASC', field: 'id' },
1027                                                             listeners : {
1028                                                                 beforeload : function (_self, o){
1029                                                                     o.params = o.params || {};
1030                                                                     // set more here
1031                                                                 }
1032                                                             },
1033                                                             proxy : {
1034                                                                 xtype: 'HttpProxy',
1035                                                                 xns: Roo.data,
1036                                                                 method : 'GET',
1037                                                                 url : baseURL + '/Roo/core_enum.php'
1038                                                             },
1039                                                             reader : {
1040                                                                 xtype: 'JsonReader',
1041                                                                 xns: Roo.data,
1042                                                                 id : 'id',
1043                                                                 root : 'data',
1044                                                                 totalProperty : 'total',
1045                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1046                                                             }
1047                                                         }
1048                                                     }
1049                                                 ]
1050                                             },
1051                                             {
1052                                                 xtype: 'FieldSet',
1053                                                 xns: Roo.form,
1054                                                 labelAlign : 'top',
1055                                                 legend : "Status / Resources",
1056                                                 items : [
1057                                                     {
1058                                                         xtype: 'ComboBox',
1059                                                         xns: Roo.form,
1060                                                         allowBlank : 'false',
1061                                                         displayField : 'name',
1062                                                         editable : 'false',
1063                                                         emptyText : "Select Person",
1064                                                         fieldLabel : 'Developer',
1065                                                         forceSelection : true,
1066                                                         hiddenName : 'developer_id',
1067                                                         listWidth : 400,
1068                                                         loadingText : "Searching...",
1069                                                         minChars : 2,
1070                                                         name : 'developer_id_name',
1071                                                         pageSize : 20,
1072                                                         qtip : "Select Person",
1073                                                         queryParam : 'query[name]',
1074                                                         selectOnFocus : true,
1075                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1076                                                         triggerAction : 'all',
1077                                                         typeAhead : true,
1078                                                         valueField : 'id',
1079                                                         width : 180,
1080                                                         store : {
1081                                                             xtype: 'Store',
1082                                                             xns: Roo.data,
1083                                                             remoteSort : true,
1084                                                             sortInfo : { direction : 'ASC', field: 'id' },
1085                                                             listeners : {
1086                                                                 beforeload : function (_self, o){
1087                                                                     o.params = o.params || {};
1088                                                                     // set more here
1089                                                                 }
1090                                                             },
1091                                                             proxy : {
1092                                                                 xtype: 'HttpProxy',
1093                                                                 xns: Roo.data,
1094                                                                 method : 'GET',
1095                                                                 url : baseURL + '/Roo/Person.php'
1096                                                             },
1097                                                             reader : {
1098                                                                 xtype: 'JsonReader',
1099                                                                 xns: Roo.data,
1100                                                                 id : 'id',
1101                                                                 root : 'data',
1102                                                                 totalProperty : 'total',
1103                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1104                                                             }
1105                                                         }
1106                                                     },
1107                                                     {
1108                                                         xtype: 'ComboBox',
1109                                                         xns: Roo.form,
1110                                                         allowBlank : 'false',
1111                                                         displayField : 'name',
1112                                                         editable : 'false',
1113                                                         emptyText : "Select Person",
1114                                                         fieldLabel : 'Owner',
1115                                                         forceSelection : true,
1116                                                         hiddenName : 'owner_id',
1117                                                         listWidth : 400,
1118                                                         loadingText : "Searching...",
1119                                                         minChars : 2,
1120                                                         name : 'owner_id_name',
1121                                                         pageSize : 20,
1122                                                         qtip : "Select Person",
1123                                                         queryParam : 'query[name]',
1124                                                         selectOnFocus : true,
1125                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1126                                                         triggerAction : 'all',
1127                                                         typeAhead : true,
1128                                                         valueField : 'id',
1129                                                         width : 180,
1130                                                         store : {
1131                                                             xtype: 'Store',
1132                                                             xns: Roo.data,
1133                                                             remoteSort : true,
1134                                                             sortInfo : { direction : 'ASC', field: 'id' },
1135                                                             listeners : {
1136                                                                 beforeload : function (_self, o){
1137                                                                     o.params = o.params || {};
1138                                                                     // set more here
1139                                                                 }
1140                                                             },
1141                                                             proxy : {
1142                                                                 xtype: 'HttpProxy',
1143                                                                 xns: Roo.data,
1144                                                                 method : 'GET',
1145                                                                 url : baseURL + '/Roo/Person.php'
1146                                                             },
1147                                                             reader : {
1148                                                                 xtype: 'JsonReader',
1149                                                                 xns: Roo.data,
1150                                                                 id : 'id',
1151                                                                 root : 'data',
1152                                                                 totalProperty : 'total',
1153                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1154                                                             }
1155                                                         }
1156                                                     },
1157                                                     {
1158                                                         xtype: 'ComboBox',
1159                                                         xns: Roo.form,
1160                                                         allowBlank : 'false',
1161                                                         displayField : 'etype',
1162                                                         editable : 'false',
1163                                                         emptyText : "Select core_enum",
1164                                                         fieldLabel : 'Status',
1165                                                         forceSelection : true,
1166                                                         hiddenName : 'status',
1167                                                         listWidth : 400,
1168                                                         loadingText : "Searching...",
1169                                                         minChars : 2,
1170                                                         name : 'status_etype',
1171                                                         pageSize : 20,
1172                                                         qtip : "Select core_enum",
1173                                                         queryParam : 'query[etype]',
1174                                                         selectOnFocus : true,
1175                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1176                                                         triggerAction : 'all',
1177                                                         typeAhead : true,
1178                                                         valueField : 'id',
1179                                                         width : 180,
1180                                                         store : {
1181                                                             xtype: 'Store',
1182                                                             xns: Roo.data,
1183                                                             remoteSort : true,
1184                                                             sortInfo : { direction : 'ASC', field: 'id' },
1185                                                             listeners : {
1186                                                                 beforeload : function (_self, o){
1187                                                                     o.params = o.params || {};
1188                                                                     // set more here
1189                                                                 }
1190                                                             },
1191                                                             proxy : {
1192                                                                 xtype: 'HttpProxy',
1193                                                                 xns: Roo.data,
1194                                                                 method : 'GET',
1195                                                                 url : baseURL + '/Roo/core_enum.php'
1196                                                             },
1197                                                             reader : {
1198                                                                 xtype: 'JsonReader',
1199                                                                 xns: Roo.data,
1200                                                                 id : 'id',
1201                                                                 root : 'data',
1202                                                                 totalProperty : 'total',
1203                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1204                                                             }
1205                                                         }
1206                                                     },
1207                                                     {
1208                                                         xtype: 'ComboBox',
1209                                                         xns: Roo.form,
1210                                                         allowBlank : 'false',
1211                                                         displayField : 'etype',
1212                                                         editable : 'false',
1213                                                         emptyText : "Select core_enum",
1214                                                         fieldLabel : 'Resolution',
1215                                                         forceSelection : true,
1216                                                         hiddenName : 'resolution_id',
1217                                                         listWidth : 400,
1218                                                         loadingText : "Searching...",
1219                                                         minChars : 2,
1220                                                         name : 'resolution_id_etype',
1221                                                         pageSize : 20,
1222                                                         qtip : "Select core_enum",
1223                                                         queryParam : 'query[etype]',
1224                                                         selectOnFocus : true,
1225                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1226                                                         triggerAction : 'all',
1227                                                         typeAhead : true,
1228                                                         valueField : 'id',
1229                                                         width : 180,
1230                                                         store : {
1231                                                             xtype: 'Store',
1232                                                             xns: Roo.data,
1233                                                             remoteSort : true,
1234                                                             sortInfo : { direction : 'ASC', field: 'id' },
1235                                                             listeners : {
1236                                                                 beforeload : function (_self, o){
1237                                                                     o.params = o.params || {};
1238                                                                     // set more here
1239                                                                 }
1240                                                             },
1241                                                             proxy : {
1242                                                                 xtype: 'HttpProxy',
1243                                                                 xns: Roo.data,
1244                                                                 method : 'GET',
1245                                                                 url : baseURL + '/Roo/core_enum.php'
1246                                                             },
1247                                                             reader : {
1248                                                                 xtype: 'JsonReader',
1249                                                                 xns: Roo.data,
1250                                                                 id : 'id',
1251                                                                 root : 'data',
1252                                                                 totalProperty : 'total',
1253                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1254                                                             }
1255                                                         }
1256                                                     },
1257                                                     {
1258                                                         xtype: 'NumberField',
1259                                                         xns: Roo.form,
1260                                                         style : 'align:right;',
1261                                                         fieldLabel : 'Estimated',
1262                                                         name : 'estimated',
1263                                                         width : 75
1264                                                     },
1265                                                     {
1266                                                         xtype: 'NumberField',
1267                                                         xns: Roo.form,
1268                                                         fieldLabel : 'Spent',
1269                                                         name : 'spent',
1270                                                         width : 75
1271                                                     },
1272                                                     {
1273                                                         xtype: 'DisplayField',
1274                                                         xns: Roo.form,
1275                                                         fieldLabel : 'Created',
1276                                                         name : 'created_when'
1277                                                     },
1278                                                     {
1279                                                         xtype: 'DisplayField',
1280                                                         xns: Roo.form,
1281                                                         fieldLabel : 'Last Updated',
1282                                                         name : 'updated_when'
1283                                                     }
1284                                                 ]
1285                                             }
1286                                         ]
1287                                     },
1288                                     {
1289                                         xtype: 'Column',
1290                                         xns: Roo.form,
1291                                         style : 'margin-left:10px',
1292                                         width : '420px',
1293                                         items : [
1294                                             {
1295                                                 xtype: 'FieldSet',
1296                                                 xns: Roo.form,
1297                                                 labelAlign : 'top',
1298                                                 legend : "Summary / Details",
1299                                                 items : [
1300                                                     {
1301                                                         xtype: 'TextField',
1302                                                         xns: Roo.form,
1303                                                         fieldLabel : 'Summary',
1304                                                         name : 'summary',
1305                                                         width : 400
1306                                                     },
1307                                                     {
1308                                                         xtype: 'TextArea',
1309                                                         xns: Roo.form,
1310                                                         fieldLabel : 'Description',
1311                                                         height : 200,
1312                                                         name : 'description',
1313                                                         width : 400
1314                                                     }
1315                                                 ]
1316                                             },
1317                                             {
1318                                                 xtype: 'FieldSet',
1319                                                 xns: Roo.form,
1320                                                 labelAlign : 'top',
1321                                                 legend : "Add Comment",
1322                                                 items : [
1323                                                     {
1324                                                         xtype: 'TextArea',
1325                                                         xns: Roo.form,
1326                                                         fieldLabel : 'Comment',
1327                                                         height : 150,
1328                                                         name : 'comment',
1329                                                         width : 400
1330                                                     },
1331                                                     {
1332                                                         xtype: 'Button',
1333                                                         xns: Roo,
1334                                                         text : "Add Comment"
1335                                                     }
1336                                                 ]
1337                                             },
1338                                             {
1339                                                 xtype: 'FieldSet',
1340                                                 xns: Roo.form,
1341                                                 labelAlign : 'top',
1342                                                 legend : "History",
1343                                                 items : [
1344                                                     {
1345                                                         xtype: 'DisplayField',
1346                                                         xns: Roo.form,
1347                                                         value : "... last few items of history goes in here.."
1348                                                     }
1349                                                 ]
1350                                             }
1351                                         ]
1352                                     },
1353                                     {
1354                                         xtype: 'Column',
1355                                         xns: Roo.form,
1356                                         style : 'margin-left: 10px',
1357                                         width : 200,
1358                                         items : [
1359                                             {
1360                                                 xtype: 'FieldSet',
1361                                                 xns: Roo.form,
1362                                                 labelAlign : 'top',
1363                                                 legend : "Schedule Work",
1364                                                 items : [
1365                                                     {
1366                                                         xtype: 'DateField',
1367                                                         xns: Roo.form,
1368                                                         fieldLabel : 'Tagged to start on'
1369                                                     }
1370                                                 ]
1371                                             },
1372                                             {
1373                                                 xtype: 'FieldSet',
1374                                                 xns: Roo.form,
1375                                                 labelAlign : 'top',
1376                                                 legend : "Attachments",
1377                                                 items : [
1378                                                     {
1379                                                         xtype: 'TextField',
1380                                                         xns: Roo.form,
1381                                                         fieldLabel : 'Add File',
1382                                                         inputType : 'file',
1383                                                         name : 'files[]',
1384                                                         qtip : ""
1385                                                     }
1386                                                 ]
1387                                             },
1388                                             {
1389                                                 xtype: 'FieldSet',
1390                                                 xns: Roo.form,
1391                                                 labelAlign : 'top',
1392                                                 legend : "Watching",
1393                                                 items : [
1394                                                     {
1395                                                         xtype: 'ComboBox',
1396                                                         xns: Roo.form,
1397                                                         displayField : 'name',
1398                                                         emptyText : "Select Person",
1399                                                         fieldLabel : 'Person',
1400                                                         forceSelection : true,
1401                                                         hiddenName : 'watcher_add_id',
1402                                                         listWidth : 400,
1403                                                         loadingText : "Searching...",
1404                                                         minChars : 2,
1405                                                         name : 'watcher_add',
1406                                                         pageSize : 20,
1407                                                         qtip : "Select Person",
1408                                                         queryParam : 'query[name]',
1409                                                         selectOnFocus : true,
1410                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1411                                                         triggerAction : 'all',
1412                                                         typeAhead : true,
1413                                                         valueField : 'id',
1414                                                         width : 180,
1415                                                         store : {
1416                                                             xtype: 'Store',
1417                                                             xns: Roo.data,
1418                                                             remoteSort : true,
1419                                                             sortInfo : { direction : 'ASC', field: 'id' },
1420                                                             listeners : {
1421                                                                 beforeload : function (_self, o){
1422                                                                     o.params = o.params || {};
1423                                                                     // set more here
1424                                                                 }
1425                                                             },
1426                                                             proxy : {
1427                                                                 xtype: 'HttpProxy',
1428                                                                 xns: Roo.data,
1429                                                                 method : 'GET',
1430                                                                 url : baseURL + '/Roo/Person.php'
1431                                                             },
1432                                                             reader : {
1433                                                                 xtype: 'JsonReader',
1434                                                                 xns: Roo.data,
1435                                                                 id : 'id',
1436                                                                 root : 'data',
1437                                                                 totalProperty : 'total',
1438                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1439                                                             }
1440                                                         }
1441                                                     },
1442                                                     {
1443                                                         xtype: 'DisplayField',
1444                                                         xns: Roo.form,
1445                                                         value : "..existing watchers..."
1446                                                     }
1447                                                 ]
1448                                             },
1449                                             {
1450                                                 xtype: 'FieldSet',
1451                                                 xns: Roo.form,
1452                                                 labelSeparator : '&nbsp;',
1453                                                 labelWidth : 1,
1454                                                 legend : "Change Status",
1455                                                 items : [
1456                                                     {
1457                                                         xtype: 'Radio',
1458                                                         xns: Roo.form,
1459                                                         boxLabel : 'Leave status as NEW',
1460                                                         name : 'leave'
1461                                                     },
1462                                                     {
1463                                                         xtype: 'Radio',
1464                                                         xns: Roo.form,
1465                                                         boxLabel : 'Leave status as NEW',
1466                                                         name : 'leave'
1467                                                     },
1468                                                     {
1469                                                         xtype: 'Radio',
1470                                                         xns: Roo.form,
1471                                                         boxLabel : 'Leave status as NEW',
1472                                                         name : 'leave'
1473                                                     },
1474                                                     {
1475                                                         xtype: 'Radio',
1476                                                         xns: Roo.form,
1477                                                         boxLabel : 'Leave status as NEW',
1478                                                         name : 'leave'
1479                                                     },
1480                                                     {
1481                                                         xtype: 'Radio',
1482                                                         xns: Roo.form,
1483                                                         boxLabel : 'Leave status as NEW',
1484                                                         name : 'leave'
1485                                                     }
1486                                                 ]
1487                                             },
1488                                             {
1489                                                 xtype: 'FieldSet',
1490                                                 xns: Roo.form,
1491                                                 labelAlign : 'top',
1492                                                 legend : "Logged work",
1493                                                 items : [
1494                                                     {
1495                                                         xtype: 'DisplayField',
1496                                                         xns: Roo.form,
1497                                                         value : "... timesheet references?..."
1498                                                     }
1499                                                 ]
1500                                             }
1501                                         ]
1502                                     },
1503                                     {
1504                                         xtype: 'Hidden',
1505                                         xns: Roo.form,
1506                                         name : 'id'
1507                                     }
1508                                 ]
1509                             }
1510                         ],
1511                         toolbar : {
1512                             xtype: 'Toolbar',
1513                             xns: Roo,
1514                             items : [
1515                                 {
1516                                     xtype: 'Button',
1517                                     xns: Roo.Toolbar,
1518                                     text : "Save Changes"
1519                                 },
1520                                 {
1521                                     xtype: 'Fill',
1522                                     xns: Roo.Toolbar
1523                                 },
1524                                 {
1525                                     xtype: 'Button',
1526                                     xns: Roo.Toolbar,
1527                                     text : "Cancel"
1528                                 }
1529                             ]
1530                         }
1531                     },
1532                     {
1533                         xtype: 'ContentPanel',
1534                         xns: Roo,
1535                         background : true,
1536                         region : 'east',
1537                         title : "Full history"
1538                     }
1539                 ],
1540                 center : {
1541                     xtype: 'LayoutRegion',
1542                     xns: Roo
1543                 },
1544                 east : {
1545                     xtype: 'LayoutRegion',
1546                     xns: Roo,
1547                     collapsible : true,
1548                     tabPosition : 'top',
1549                     title : "Ticket Details",
1550                     width : 850
1551                 },
1552                 center : {
1553                     xtype: 'LayoutRegion',
1554                     xns: Roo
1555                 }
1556             }
1557         };
1558     }
1559 });