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