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: 'Fill',
569                                         xns: Roo.Toolbar
570                                     },
571                                     {
572                                         xtype: 'Button',
573                                         xns: Roo.Toolbar,
574                                         listeners : {
575                                             click : function()
576                                             {
577                                                 if (!_this.dialog) return;
578                                                 _this.dialog.show( { id : 0 } , function() {
579                                                     _this.grid.footer.onClick('first');
580                                                }); 
581                                             }
582                                         },
583                                         cls : 'x-btn-text-icon',
584                                         text : "Create Ticket",
585                                         icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
586                                     },
587                                     {
588                                         xtype: 'Button',
589                                         xns: Roo.Toolbar,
590                                         text : "Edit",
591                                         cls : 'x-btn-text-icon',
592                                         icon : Roo.rootURL + 'images/default/tree/leaf.gif',
593                                         listeners : {
594                                             click : function()
595                                             {
596                                                 var s = _this.grid.getSelectionModel().getSelections();
597                                                 if (!s.length || (s.length > 1))  {
598                                                     Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
599                                                     return;
600                                                 }
601                                                 if (!_this.dialog) return;
602                                                 _this.dialog.show(s[0].data, function() {
603                                                     _this.grid.footer.onClick('first');
604                                                 }); 
605                                                 
606                                             }
607                                         }
608                                     },
609                                     {
610                                         xtype: 'Button',
611                                         xns: Roo.Toolbar,
612                                         listeners : {
613                                             click : function()
614                                             {
615                                                  Pman.genericDelete(_this, 'mtrack_ticket'); 
616                                             }
617                                         },
618                                         cls : 'x-btn-text-icon',
619                                         text : "Quick Close",
620                                         icon : rootURL + '/Pman/templates/images/trash.gif'
621                                     }
622                                 ]
623                             },
624                             colModel : [
625                                 {
626                                     xtype: 'ColumnModel',
627                                     xns: Roo.grid,
628                                     header : 'Id',
629                                     width : 75,
630                                     dataIndex : 'id',
631                                     renderer : function(v) { return String.format('{0}', v); }
632                                 },
633                                 {
634                                     xtype: 'ColumnModel',
635                                     xns: Roo.grid,
636                                     header : 'Summary',
637                                     width : 200,
638                                     dataIndex : 'summary',
639                                     renderer : function(v) { return String.format('{0}', v); }
640                                 },
641                                 {
642                                     xtype: 'ColumnModel',
643                                     xns: Roo.grid,
644                                     header : 'Project',
645                                     width : 75,
646                                     dataIndex : 'project_id',
647                                     renderer : function(v) { return String.format('{0}', v); }
648                                 },
649                                 {
650                                     xtype: 'ColumnModel',
651                                     xns: Roo.grid,
652                                     header : 'Milestone',
653                                     width : 75,
654                                     dataIndex : 'milestone_id',
655                                     renderer : function(v) { return String.format('{0}', v); }
656                                 },
657                                 {
658                                     xtype: 'ColumnModel',
659                                     xns: Roo.grid,
660                                     header : 'Description',
661                                     width : 200,
662                                     dataIndex : 'description',
663                                     renderer : function(v) { return String.format('{0}', v); }
664                                 },
665                                 {
666                                     xtype: 'ColumnModel',
667                                     xns: Roo.grid,
668                                     header : 'Owner',
669                                     width : 75,
670                                     dataIndex : 'owner_id',
671                                     renderer : function(v) { return String.format('{0}', v); }
672                                 },
673                                 {
674                                     xtype: 'ColumnModel',
675                                     xns: Roo.grid,
676                                     header : 'Created',
677                                     width : 75,
678                                     dataIndex : 'created',
679                                     renderer : function(v) { return String.format('{0}', v); }
680                                 },
681                                 {
682                                     xtype: 'ColumnModel',
683                                     xns: Roo.grid,
684                                     header : 'Updated',
685                                     width : 75,
686                                     dataIndex : 'updated',
687                                     renderer : function(v) { return String.format('{0}', v); }
688                                 },
689                                 {
690                                     xtype: 'ColumnModel',
691                                     xns: Roo.grid,
692                                     header : 'Priority',
693                                     width : 75,
694                                     dataIndex : 'priority_id',
695                                     renderer : function(v) { return String.format('{0}', v); }
696                                 },
697                                 {
698                                     xtype: 'ColumnModel',
699                                     xns: Roo.grid,
700                                     header : 'Severity',
701                                     width : 75,
702                                     dataIndex : 'severity_id',
703                                     renderer : function(v) { return String.format('{0}', v); }
704                                 },
705                                 {
706                                     xtype: 'ColumnModel',
707                                     xns: Roo.grid,
708                                     header : 'Classification',
709                                     width : 75,
710                                     dataIndex : 'classification_id',
711                                     renderer : function(v) { return String.format('{0}', v); }
712                                 },
713                                 {
714                                     xtype: 'ColumnModel',
715                                     xns: Roo.grid,
716                                     header : 'Estimated',
717                                     width : 75,
718                                     dataIndex : 'estimated',
719                                     renderer : function(v) { return String.format('{0}', v); }
720                                 },
721                                 {
722                                     xtype: 'ColumnModel',
723                                     xns: Roo.grid,
724                                     header : 'Spent',
725                                     width : 75,
726                                     dataIndex : 'spent',
727                                     renderer : function(v) { return String.format('{0}', v); }
728                                 },
729                                 {
730                                     xtype: 'ColumnModel',
731                                     xns: Roo.grid,
732                                     header : 'Project',
733                                     width : 75,
734                                     dataIndex : 'project_id',
735                                     renderer : function(v) { return String.format('{0}', v); }
736                                 },
737                                 {
738                                     xtype: 'ColumnModel',
739                                     xns: Roo.grid,
740                                     header : 'Developer',
741                                     width : 75,
742                                     dataIndex : 'developer_id',
743                                     renderer : function(v) { return String.format('{0}', v); }
744                                 }
745                             ]
746                         }
747                     },
748                     {
749                         xtype: 'ContentPanel',
750                         xns: Roo,
751                         autoScroll : true,
752                         region : 'east',
753                         title : "Add / Edit Ticket",
754                         adjustments : [30, 30],
755                         items : [
756                             {
757                                 xtype: 'Form',
758                                 xns: Roo.form,
759                                 listeners : {
760                                     actioncomplete : function(_self,action)
761                                     {
762                                         if (action.type == 'setdata') {
763                                            //_this.dialog.el.mask("Loading");
764                                            //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
765                                            return;
766                                         }
767                                         if (action.type == 'load') {
768                                             _this.dialog.el.unmask();
769                                             return;
770                                         }
771                                         if (action.type =='submit') {
772                                         
773                                             _this.dialog.el.unmask();
774                                             _this.dialog.hide();
775                                         
776                                              if (_this.callback) {
777                                                 _this.callback.call(_this, _this.form.getValues());
778                                              }
779                                              _this.form.reset();
780                                              return;
781                                         }
782                                     },
783                                     rendered : function (form)
784                                     {
785                                         _this.form= form;
786                                     }
787                                 },
788                                 method : 'POST',
789                                 style : 'margin:10px;width:1000px;',
790                                 url : baseURL + '/Roo/mtrack_ticket.php',
791                                 items : [
792                                     {
793                                         xtype: 'Column',
794                                         xns: Roo.form,
795                                         width : 200,
796                                         items : [
797                                             {
798                                                 xtype: 'FieldSet',
799                                                 xns: Roo.form,
800                                                 labelAlign : 'top',
801                                                 legend : "Properties",
802                                                 items : [
803                                                     {
804                                                         xtype: 'ComboBox',
805                                                         xns: Roo.form,
806                                                         allowBlank : 'false',
807                                                         displayField : 'name',
808                                                         editable : 'false',
809                                                         emptyText : "Select Projects",
810                                                         fieldLabel : 'Project',
811                                                         forceSelection : true,
812                                                         hiddenName : 'project_id',
813                                                         listWidth : 400,
814                                                         loadingText : "Searching...",
815                                                         minChars : 2,
816                                                         name : 'project_id_name',
817                                                         pageSize : 20,
818                                                         qtip : "Select Projects",
819                                                         queryParam : 'query[name]',
820                                                         selectOnFocus : true,
821                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
822                                                         triggerAction : 'all',
823                                                         typeAhead : true,
824                                                         valueField : 'id',
825                                                         width : 180,
826                                                         store : {
827                                                             xtype: 'Store',
828                                                             xns: Roo.data,
829                                                             remoteSort : true,
830                                                             sortInfo : { direction : 'ASC', field: 'id' },
831                                                             listeners : {
832                                                                 beforeload : function (_self, o){
833                                                                     o.params = o.params || {};
834                                                                     // set more here
835                                                                 }
836                                                             },
837                                                             proxy : {
838                                                                 xtype: 'HttpProxy',
839                                                                 xns: Roo.data,
840                                                                 method : 'GET',
841                                                                 url : baseURL + '/Roo/Projects.php'
842                                                             },
843                                                             reader : {
844                                                                 xtype: 'JsonReader',
845                                                                 xns: Roo.data,
846                                                                 id : 'id',
847                                                                 root : 'data',
848                                                                 totalProperty : 'total',
849                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
850                                                             }
851                                                         }
852                                                     },
853                                                     {
854                                                         xtype: 'ComboBox',
855                                                         xns: Roo.form,
856                                                         allowBlank : 'false',
857                                                         displayField : 'name',
858                                                         editable : 'false',
859                                                         emptyText : "Select mtrack_milestone",
860                                                         fieldLabel : 'Milestone',
861                                                         forceSelection : true,
862                                                         hiddenName : 'milestone_id',
863                                                         listWidth : 400,
864                                                         loadingText : "Searching...",
865                                                         minChars : 2,
866                                                         name : 'milestone_id_name',
867                                                         pageSize : 20,
868                                                         qtip : "Select mtrack_milestone",
869                                                         queryParam : 'query[name]',
870                                                         selectOnFocus : true,
871                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
872                                                         triggerAction : 'all',
873                                                         typeAhead : true,
874                                                         valueField : 'id',
875                                                         width : 180,
876                                                         store : {
877                                                             xtype: 'Store',
878                                                             xns: Roo.data,
879                                                             remoteSort : true,
880                                                             sortInfo : { direction : 'ASC', field: 'id' },
881                                                             listeners : {
882                                                                 beforeload : function (_self, o){
883                                                                     o.params = o.params || {};
884                                                                     // set more here
885                                                                 }
886                                                             },
887                                                             proxy : {
888                                                                 xtype: 'HttpProxy',
889                                                                 xns: Roo.data,
890                                                                 method : 'GET',
891                                                                 url : baseURL + '/Roo/mtrack_milestone.php'
892                                                             },
893                                                             reader : {
894                                                                 xtype: 'JsonReader',
895                                                                 xns: Roo.data,
896                                                                 id : 'id',
897                                                                 root : 'data',
898                                                                 totalProperty : 'total',
899                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
900                                                             }
901                                                         }
902                                                     },
903                                                     {
904                                                         xtype: 'ComboBox',
905                                                         xns: Roo.form,
906                                                         allowBlank : 'false',
907                                                         displayField : 'etype',
908                                                         editable : 'false',
909                                                         emptyText : "Select core_enum",
910                                                         fieldLabel : 'Priority',
911                                                         forceSelection : true,
912                                                         hiddenName : 'priority_id',
913                                                         listWidth : 400,
914                                                         loadingText : "Searching...",
915                                                         minChars : 2,
916                                                         name : 'priority_id_etype',
917                                                         pageSize : 20,
918                                                         qtip : "Select core_enum",
919                                                         queryParam : 'query[etype]',
920                                                         selectOnFocus : true,
921                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
922                                                         triggerAction : 'all',
923                                                         typeAhead : true,
924                                                         valueField : 'id',
925                                                         width : 180,
926                                                         store : {
927                                                             xtype: 'Store',
928                                                             xns: Roo.data,
929                                                             remoteSort : true,
930                                                             sortInfo : { direction : 'ASC', field: 'id' },
931                                                             listeners : {
932                                                                 beforeload : function (_self, o){
933                                                                     o.params = o.params || {};
934                                                                     // set more here
935                                                                 }
936                                                             },
937                                                             proxy : {
938                                                                 xtype: 'HttpProxy',
939                                                                 xns: Roo.data,
940                                                                 method : 'GET',
941                                                                 url : baseURL + '/Roo/core_enum.php'
942                                                             },
943                                                             reader : {
944                                                                 xtype: 'JsonReader',
945                                                                 xns: Roo.data,
946                                                                 id : 'id',
947                                                                 root : 'data',
948                                                                 totalProperty : 'total',
949                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
950                                                             }
951                                                         }
952                                                     },
953                                                     {
954                                                         xtype: 'ComboBox',
955                                                         xns: Roo.form,
956                                                         allowBlank : 'false',
957                                                         displayField : 'etype',
958                                                         editable : 'false',
959                                                         emptyText : "Select core_enum",
960                                                         fieldLabel : 'Severity',
961                                                         forceSelection : true,
962                                                         hiddenName : 'severity_id',
963                                                         listWidth : 400,
964                                                         loadingText : "Searching...",
965                                                         minChars : 2,
966                                                         name : 'severity_id_etype',
967                                                         pageSize : 20,
968                                                         qtip : "Select core_enum",
969                                                         queryParam : 'query[etype]',
970                                                         selectOnFocus : true,
971                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
972                                                         triggerAction : 'all',
973                                                         typeAhead : true,
974                                                         valueField : 'id',
975                                                         width : 180,
976                                                         store : {
977                                                             xtype: 'Store',
978                                                             xns: Roo.data,
979                                                             remoteSort : true,
980                                                             sortInfo : { direction : 'ASC', field: 'id' },
981                                                             listeners : {
982                                                                 beforeload : function (_self, o){
983                                                                     o.params = o.params || {};
984                                                                     // set more here
985                                                                 }
986                                                             },
987                                                             proxy : {
988                                                                 xtype: 'HttpProxy',
989                                                                 xns: Roo.data,
990                                                                 method : 'GET',
991                                                                 url : baseURL + '/Roo/core_enum.php'
992                                                             },
993                                                             reader : {
994                                                                 xtype: 'JsonReader',
995                                                                 xns: Roo.data,
996                                                                 id : 'id',
997                                                                 root : 'data',
998                                                                 totalProperty : 'total',
999                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1000                                                             }
1001                                                         }
1002                                                     },
1003                                                     {
1004                                                         xtype: 'ComboBox',
1005                                                         xns: Roo.form,
1006                                                         allowBlank : 'false',
1007                                                         displayField : 'etype',
1008                                                         editable : 'false',
1009                                                         emptyText : "Select core_enum",
1010                                                         fieldLabel : 'Classification',
1011                                                         forceSelection : true,
1012                                                         hiddenName : 'classification_id',
1013                                                         listWidth : 400,
1014                                                         loadingText : "Searching...",
1015                                                         minChars : 2,
1016                                                         name : 'classification_id_etype',
1017                                                         pageSize : 20,
1018                                                         qtip : "Select core_enum",
1019                                                         queryParam : 'query[etype]',
1020                                                         selectOnFocus : true,
1021                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1022                                                         triggerAction : 'all',
1023                                                         typeAhead : true,
1024                                                         valueField : 'id',
1025                                                         width : 180,
1026                                                         store : {
1027                                                             xtype: 'Store',
1028                                                             xns: Roo.data,
1029                                                             remoteSort : true,
1030                                                             sortInfo : { direction : 'ASC', field: 'id' },
1031                                                             listeners : {
1032                                                                 beforeload : function (_self, o){
1033                                                                     o.params = o.params || {};
1034                                                                     // set more here
1035                                                                 }
1036                                                             },
1037                                                             proxy : {
1038                                                                 xtype: 'HttpProxy',
1039                                                                 xns: Roo.data,
1040                                                                 method : 'GET',
1041                                                                 url : baseURL + '/Roo/core_enum.php'
1042                                                             },
1043                                                             reader : {
1044                                                                 xtype: 'JsonReader',
1045                                                                 xns: Roo.data,
1046                                                                 id : 'id',
1047                                                                 root : 'data',
1048                                                                 totalProperty : 'total',
1049                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1050                                                             }
1051                                                         }
1052                                                     }
1053                                                 ]
1054                                             },
1055                                             {
1056                                                 xtype: 'FieldSet',
1057                                                 xns: Roo.form,
1058                                                 labelAlign : 'top',
1059                                                 legend : "Status / Resources",
1060                                                 items : [
1061                                                     {
1062                                                         xtype: 'ComboBox',
1063                                                         xns: Roo.form,
1064                                                         allowBlank : 'false',
1065                                                         displayField : 'name',
1066                                                         editable : 'false',
1067                                                         emptyText : "Select Person",
1068                                                         fieldLabel : 'Developer',
1069                                                         forceSelection : true,
1070                                                         hiddenName : 'developer_id',
1071                                                         listWidth : 400,
1072                                                         loadingText : "Searching...",
1073                                                         minChars : 2,
1074                                                         name : 'developer_id_name',
1075                                                         pageSize : 20,
1076                                                         qtip : "Select Person",
1077                                                         queryParam : 'query[name]',
1078                                                         selectOnFocus : true,
1079                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1080                                                         triggerAction : 'all',
1081                                                         typeAhead : true,
1082                                                         valueField : 'id',
1083                                                         width : 180,
1084                                                         store : {
1085                                                             xtype: 'Store',
1086                                                             xns: Roo.data,
1087                                                             remoteSort : true,
1088                                                             sortInfo : { direction : 'ASC', field: 'id' },
1089                                                             listeners : {
1090                                                                 beforeload : function (_self, o){
1091                                                                     o.params = o.params || {};
1092                                                                     // set more here
1093                                                                 }
1094                                                             },
1095                                                             proxy : {
1096                                                                 xtype: 'HttpProxy',
1097                                                                 xns: Roo.data,
1098                                                                 method : 'GET',
1099                                                                 url : baseURL + '/Roo/Person.php'
1100                                                             },
1101                                                             reader : {
1102                                                                 xtype: 'JsonReader',
1103                                                                 xns: Roo.data,
1104                                                                 id : 'id',
1105                                                                 root : 'data',
1106                                                                 totalProperty : 'total',
1107                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1108                                                             }
1109                                                         }
1110                                                     },
1111                                                     {
1112                                                         xtype: 'ComboBox',
1113                                                         xns: Roo.form,
1114                                                         allowBlank : 'false',
1115                                                         displayField : 'name',
1116                                                         editable : 'false',
1117                                                         emptyText : "Select Person",
1118                                                         fieldLabel : 'Owner',
1119                                                         forceSelection : true,
1120                                                         hiddenName : 'owner_id',
1121                                                         listWidth : 400,
1122                                                         loadingText : "Searching...",
1123                                                         minChars : 2,
1124                                                         name : 'owner_id_name',
1125                                                         pageSize : 20,
1126                                                         qtip : "Select Person",
1127                                                         queryParam : 'query[name]',
1128                                                         selectOnFocus : true,
1129                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1130                                                         triggerAction : 'all',
1131                                                         typeAhead : true,
1132                                                         valueField : 'id',
1133                                                         width : 180,
1134                                                         store : {
1135                                                             xtype: 'Store',
1136                                                             xns: Roo.data,
1137                                                             remoteSort : true,
1138                                                             sortInfo : { direction : 'ASC', field: 'id' },
1139                                                             listeners : {
1140                                                                 beforeload : function (_self, o){
1141                                                                     o.params = o.params || {};
1142                                                                     // set more here
1143                                                                 }
1144                                                             },
1145                                                             proxy : {
1146                                                                 xtype: 'HttpProxy',
1147                                                                 xns: Roo.data,
1148                                                                 method : 'GET',
1149                                                                 url : baseURL + '/Roo/Person.php'
1150                                                             },
1151                                                             reader : {
1152                                                                 xtype: 'JsonReader',
1153                                                                 xns: Roo.data,
1154                                                                 id : 'id',
1155                                                                 root : 'data',
1156                                                                 totalProperty : 'total',
1157                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1158                                                             }
1159                                                         }
1160                                                     },
1161                                                     {
1162                                                         xtype: 'ComboBox',
1163                                                         xns: Roo.form,
1164                                                         allowBlank : 'false',
1165                                                         displayField : 'etype',
1166                                                         editable : 'false',
1167                                                         emptyText : "Select core_enum",
1168                                                         fieldLabel : 'Status',
1169                                                         forceSelection : true,
1170                                                         hiddenName : 'status',
1171                                                         listWidth : 400,
1172                                                         loadingText : "Searching...",
1173                                                         minChars : 2,
1174                                                         name : 'status_etype',
1175                                                         pageSize : 20,
1176                                                         qtip : "Select core_enum",
1177                                                         queryParam : 'query[etype]',
1178                                                         selectOnFocus : true,
1179                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1180                                                         triggerAction : 'all',
1181                                                         typeAhead : true,
1182                                                         valueField : 'id',
1183                                                         width : 180,
1184                                                         store : {
1185                                                             xtype: 'Store',
1186                                                             xns: Roo.data,
1187                                                             remoteSort : true,
1188                                                             sortInfo : { direction : 'ASC', field: 'id' },
1189                                                             listeners : {
1190                                                                 beforeload : function (_self, o){
1191                                                                     o.params = o.params || {};
1192                                                                     // set more here
1193                                                                 }
1194                                                             },
1195                                                             proxy : {
1196                                                                 xtype: 'HttpProxy',
1197                                                                 xns: Roo.data,
1198                                                                 method : 'GET',
1199                                                                 url : baseURL + '/Roo/core_enum.php'
1200                                                             },
1201                                                             reader : {
1202                                                                 xtype: 'JsonReader',
1203                                                                 xns: Roo.data,
1204                                                                 id : 'id',
1205                                                                 root : 'data',
1206                                                                 totalProperty : 'total',
1207                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1208                                                             }
1209                                                         }
1210                                                     },
1211                                                     {
1212                                                         xtype: 'ComboBox',
1213                                                         xns: Roo.form,
1214                                                         allowBlank : 'false',
1215                                                         displayField : 'etype',
1216                                                         editable : 'false',
1217                                                         emptyText : "Select core_enum",
1218                                                         fieldLabel : 'Resolution',
1219                                                         forceSelection : true,
1220                                                         hiddenName : 'resolution_id',
1221                                                         listWidth : 400,
1222                                                         loadingText : "Searching...",
1223                                                         minChars : 2,
1224                                                         name : 'resolution_id_etype',
1225                                                         pageSize : 20,
1226                                                         qtip : "Select core_enum",
1227                                                         queryParam : 'query[etype]',
1228                                                         selectOnFocus : true,
1229                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1230                                                         triggerAction : 'all',
1231                                                         typeAhead : true,
1232                                                         valueField : 'id',
1233                                                         width : 180,
1234                                                         store : {
1235                                                             xtype: 'Store',
1236                                                             xns: Roo.data,
1237                                                             remoteSort : true,
1238                                                             sortInfo : { direction : 'ASC', field: 'id' },
1239                                                             listeners : {
1240                                                                 beforeload : function (_self, o){
1241                                                                     o.params = o.params || {};
1242                                                                     // set more here
1243                                                                 }
1244                                                             },
1245                                                             proxy : {
1246                                                                 xtype: 'HttpProxy',
1247                                                                 xns: Roo.data,
1248                                                                 method : 'GET',
1249                                                                 url : baseURL + '/Roo/core_enum.php'
1250                                                             },
1251                                                             reader : {
1252                                                                 xtype: 'JsonReader',
1253                                                                 xns: Roo.data,
1254                                                                 id : 'id',
1255                                                                 root : 'data',
1256                                                                 totalProperty : 'total',
1257                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1258                                                             }
1259                                                         }
1260                                                     },
1261                                                     {
1262                                                         xtype: 'NumberField',
1263                                                         xns: Roo.form,
1264                                                         style : 'align:right;',
1265                                                         fieldLabel : 'Estimated',
1266                                                         name : 'estimated',
1267                                                         width : 75
1268                                                     },
1269                                                     {
1270                                                         xtype: 'NumberField',
1271                                                         xns: Roo.form,
1272                                                         fieldLabel : 'Spent',
1273                                                         name : 'spent',
1274                                                         width : 75
1275                                                     },
1276                                                     {
1277                                                         xtype: 'DisplayField',
1278                                                         xns: Roo.form,
1279                                                         fieldLabel : 'Created',
1280                                                         name : 'created_when'
1281                                                     },
1282                                                     {
1283                                                         xtype: 'DisplayField',
1284                                                         xns: Roo.form,
1285                                                         fieldLabel : 'Last Updated',
1286                                                         name : 'updated_when'
1287                                                     }
1288                                                 ]
1289                                             }
1290                                         ]
1291                                     },
1292                                     {
1293                                         xtype: 'Column',
1294                                         xns: Roo.form,
1295                                         style : 'margin-left:10px',
1296                                         width : '420px',
1297                                         items : [
1298                                             {
1299                                                 xtype: 'FieldSet',
1300                                                 xns: Roo.form,
1301                                                 labelAlign : 'top',
1302                                                 legend : "Summary / Details",
1303                                                 items : [
1304                                                     {
1305                                                         xtype: 'TextField',
1306                                                         xns: Roo.form,
1307                                                         fieldLabel : 'Summary',
1308                                                         name : 'summary',
1309                                                         width : 400
1310                                                     },
1311                                                     {
1312                                                         xtype: 'TextArea',
1313                                                         xns: Roo.form,
1314                                                         fieldLabel : 'Description',
1315                                                         height : 200,
1316                                                         name : 'description',
1317                                                         width : 400
1318                                                     }
1319                                                 ]
1320                                             },
1321                                             {
1322                                                 xtype: 'FieldSet',
1323                                                 xns: Roo.form,
1324                                                 labelAlign : 'top',
1325                                                 legend : "Add Comment",
1326                                                 items : [
1327                                                     {
1328                                                         xtype: 'TextArea',
1329                                                         xns: Roo.form,
1330                                                         fieldLabel : 'Comment',
1331                                                         height : 150,
1332                                                         name : 'comment',
1333                                                         width : 400
1334                                                     },
1335                                                     {
1336                                                         xtype: 'Button',
1337                                                         xns: Roo,
1338                                                         text : "Add Comment"
1339                                                     }
1340                                                 ]
1341                                             },
1342                                             {
1343                                                 xtype: 'FieldSet',
1344                                                 xns: Roo.form,
1345                                                 labelAlign : 'top',
1346                                                 legend : "History",
1347                                                 items : [
1348                                                     {
1349                                                         xtype: 'DisplayField',
1350                                                         xns: Roo.form,
1351                                                         value : "... last few items of history goes in here.."
1352                                                     }
1353                                                 ]
1354                                             }
1355                                         ]
1356                                     },
1357                                     {
1358                                         xtype: 'Column',
1359                                         xns: Roo.form,
1360                                         style : 'margin-left: 10px',
1361                                         width : 200,
1362                                         items : [
1363                                             {
1364                                                 xtype: 'FieldSet',
1365                                                 xns: Roo.form,
1366                                                 labelAlign : 'top',
1367                                                 legend : "Schedule Work",
1368                                                 items : [
1369                                                     {
1370                                                         xtype: 'DateField',
1371                                                         xns: Roo.form,
1372                                                         fieldLabel : 'Tagged to start on'
1373                                                     }
1374                                                 ]
1375                                             },
1376                                             {
1377                                                 xtype: 'FieldSet',
1378                                                 xns: Roo.form,
1379                                                 labelAlign : 'top',
1380                                                 legend : "Attachments",
1381                                                 items : [
1382                                                     {
1383                                                         xtype: 'TextField',
1384                                                         xns: Roo.form,
1385                                                         fieldLabel : 'Add File',
1386                                                         inputType : 'file',
1387                                                         name : 'files[]',
1388                                                         qtip : ""
1389                                                     }
1390                                                 ]
1391                                             },
1392                                             {
1393                                                 xtype: 'FieldSet',
1394                                                 xns: Roo.form,
1395                                                 labelAlign : 'top',
1396                                                 legend : "Watching",
1397                                                 items : [
1398                                                     {
1399                                                         xtype: 'ComboBox',
1400                                                         xns: Roo.form,
1401                                                         displayField : 'name',
1402                                                         emptyText : "Select Person",
1403                                                         fieldLabel : 'Person',
1404                                                         forceSelection : true,
1405                                                         hiddenName : 'watcher_add_id',
1406                                                         listWidth : 400,
1407                                                         loadingText : "Searching...",
1408                                                         minChars : 2,
1409                                                         name : 'watcher_add',
1410                                                         pageSize : 20,
1411                                                         qtip : "Select Person",
1412                                                         queryParam : 'query[name]',
1413                                                         selectOnFocus : true,
1414                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1415                                                         triggerAction : 'all',
1416                                                         typeAhead : true,
1417                                                         valueField : 'id',
1418                                                         width : 180,
1419                                                         store : {
1420                                                             xtype: 'Store',
1421                                                             xns: Roo.data,
1422                                                             remoteSort : true,
1423                                                             sortInfo : { direction : 'ASC', field: 'id' },
1424                                                             listeners : {
1425                                                                 beforeload : function (_self, o){
1426                                                                     o.params = o.params || {};
1427                                                                     // set more here
1428                                                                 }
1429                                                             },
1430                                                             proxy : {
1431                                                                 xtype: 'HttpProxy',
1432                                                                 xns: Roo.data,
1433                                                                 method : 'GET',
1434                                                                 url : baseURL + '/Roo/Person.php'
1435                                                             },
1436                                                             reader : {
1437                                                                 xtype: 'JsonReader',
1438                                                                 xns: Roo.data,
1439                                                                 id : 'id',
1440                                                                 root : 'data',
1441                                                                 totalProperty : 'total',
1442                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1443                                                             }
1444                                                         }
1445                                                     },
1446                                                     {
1447                                                         xtype: 'DisplayField',
1448                                                         xns: Roo.form,
1449                                                         value : "..existing watchers..."
1450                                                     }
1451                                                 ]
1452                                             },
1453                                             {
1454                                                 xtype: 'FieldSet',
1455                                                 xns: Roo.form,
1456                                                 labelSeparator : '&nbsp;',
1457                                                 labelWidth : 1,
1458                                                 legend : "Change Status",
1459                                                 items : [
1460                                                     {
1461                                                         xtype: 'Radio',
1462                                                         xns: Roo.form,
1463                                                         boxLabel : 'Leave status as NEW',
1464                                                         name : 'leave'
1465                                                     },
1466                                                     {
1467                                                         xtype: 'Radio',
1468                                                         xns: Roo.form,
1469                                                         boxLabel : 'Leave status as NEW',
1470                                                         name : 'leave'
1471                                                     },
1472                                                     {
1473                                                         xtype: 'Radio',
1474                                                         xns: Roo.form,
1475                                                         boxLabel : 'Leave status as NEW',
1476                                                         name : 'leave'
1477                                                     },
1478                                                     {
1479                                                         xtype: 'Radio',
1480                                                         xns: Roo.form,
1481                                                         boxLabel : 'Leave status as NEW',
1482                                                         name : 'leave'
1483                                                     },
1484                                                     {
1485                                                         xtype: 'Radio',
1486                                                         xns: Roo.form,
1487                                                         boxLabel : 'Leave status as NEW',
1488                                                         name : 'leave'
1489                                                     }
1490                                                 ]
1491                                             },
1492                                             {
1493                                                 xtype: 'FieldSet',
1494                                                 xns: Roo.form,
1495                                                 labelAlign : 'top',
1496                                                 legend : "Logged work",
1497                                                 items : [
1498                                                     {
1499                                                         xtype: 'DisplayField',
1500                                                         xns: Roo.form,
1501                                                         value : "... timesheet references?..."
1502                                                     }
1503                                                 ]
1504                                             }
1505                                         ]
1506                                     },
1507                                     {
1508                                         xtype: 'Hidden',
1509                                         xns: Roo.form,
1510                                         name : 'id'
1511                                     }
1512                                 ]
1513                             }
1514                         ],
1515                         toolbar : {
1516                             xtype: 'Toolbar',
1517                             xns: Roo,
1518                             items : [
1519                                 {
1520                                     xtype: 'Button',
1521                                     xns: Roo.Toolbar,
1522                                     text : "Save Changes"
1523                                 },
1524                                 {
1525                                     xtype: 'Fill',
1526                                     xns: Roo.Toolbar
1527                                 },
1528                                 {
1529                                     xtype: 'Button',
1530                                     xns: Roo.Toolbar,
1531                                     text : "Cancel"
1532                                 }
1533                             ]
1534                         }
1535                     },
1536                     {
1537                         xtype: 'ContentPanel',
1538                         xns: Roo,
1539                         background : true,
1540                         region : 'east',
1541                         title : "Full history"
1542                     }
1543                 ],
1544                 center : {
1545                     xtype: 'LayoutRegion',
1546                     xns: Roo
1547                 },
1548                 east : {
1549                     xtype: 'LayoutRegion',
1550                     xns: Roo,
1551                     collapsible : true,
1552                     tabPosition : 'top',
1553                     title : "Ticket Details",
1554                     width : 850
1555                 },
1556                 center : {
1557                     xtype: 'LayoutRegion',
1558                     xns: Roo
1559                 }
1560             }
1561         };
1562     }
1563 });