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