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