1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 MTrackWeb.Tab.TicketView = new Roo.XComponent({
6 order : '001-MTrackWeb.Tab.TicketView',
9 name : "unnamed module",
16 xtype: 'NestedLayoutPanel',
19 xtype: 'BorderLayout',
23 xtype: 'ContentPanel',
27 title : "Add / Edit Ticket",
28 adjustments : [30, 30],
34 actioncomplete : function(_self,action)
36 if (action.type == 'setdata') {
37 //_this.dialog.el.mask("Loading");
38 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
41 if (action.type == 'load') {
42 _this.dialog.el.unmask();
45 if (action.type =='submit') {
47 _this.dialog.el.unmask();
51 _this.callback.call(_this, _this.form.getValues());
57 rendered : function (form)
63 style : 'margin:10px;width:1000px;',
64 url : baseURL + '/Roo/mtrack_ticket.php',
75 legend : "Summary / Details",
80 fieldLabel : 'Summary',
87 fieldLabel : 'Description',
98 legend : "Add Comment",
103 fieldLabel : 'Comment',
105 name : 'description',
117 xtype: 'DisplayField',
119 value : "... last few items of history goes in here.."
128 style : 'margin-left: 10px',
135 legend : "Properties",
140 allowBlank : 'false',
141 displayField : 'name',
143 emptyText : "Select Projects",
144 fieldLabel : 'Project',
145 forceSelection : true,
146 hiddenName : 'project_id',
148 loadingText : "Searching...",
150 name : 'project_id_name',
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',
164 sortInfo : { direction : 'ASC', field: 'id' },
166 beforeload : function (_self, o){
167 o.params = o.params || {};
175 url : baseURL + '/Roo/Projects.php'
182 totalProperty : 'total',
183 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
190 allowBlank : 'false',
191 displayField : 'name',
193 emptyText : "Select mtrack_milestone",
194 fieldLabel : 'Milestone',
195 forceSelection : true,
196 hiddenName : 'milestone_id',
198 loadingText : "Searching...",
200 name : 'milestone_id_name',
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',
214 sortInfo : { direction : 'ASC', field: 'id' },
216 beforeload : function (_self, o){
217 o.params = o.params || {};
225 url : baseURL + '/Roo/mtrack_milestone.php'
232 totalProperty : 'total',
233 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
240 allowBlank : 'false',
241 displayField : 'etype',
243 emptyText : "Select core_enum",
244 fieldLabel : 'Priority',
245 forceSelection : true,
246 hiddenName : 'priority_id',
248 loadingText : "Searching...",
250 name : 'priority_id_etype',
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',
264 sortInfo : { direction : 'ASC', field: 'id' },
266 beforeload : function (_self, o){
267 o.params = o.params || {};
275 url : baseURL + '/Roo/core_enum.php'
282 totalProperty : 'total',
283 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
290 allowBlank : 'false',
291 displayField : 'etype',
293 emptyText : "Select core_enum",
294 fieldLabel : 'Severity',
295 forceSelection : true,
296 hiddenName : 'severity_id',
298 loadingText : "Searching...",
300 name : 'severity_id_etype',
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',
314 sortInfo : { direction : 'ASC', field: 'id' },
316 beforeload : function (_self, o){
317 o.params = o.params || {};
325 url : baseURL + '/Roo/core_enum.php'
332 totalProperty : 'total',
333 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
340 allowBlank : 'false',
341 displayField : 'etype',
343 emptyText : "Select core_enum",
344 fieldLabel : 'Classification',
345 forceSelection : true,
346 hiddenName : 'classification_id',
348 loadingText : "Searching...",
350 name : 'classification_id_etype',
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',
364 sortInfo : { direction : 'ASC', field: 'id' },
366 beforeload : function (_self, o){
367 o.params = o.params || {};
375 url : baseURL + '/Roo/core_enum.php'
382 totalProperty : 'total',
383 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
393 legend : "Status / Resources",
398 allowBlank : 'false',
399 displayField : 'name',
401 emptyText : "Select Person",
402 fieldLabel : 'Developer',
403 forceSelection : true,
404 hiddenName : 'developer_id',
406 loadingText : "Searching...",
408 name : 'developer_id_name',
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',
422 sortInfo : { direction : 'ASC', field: 'id' },
424 beforeload : function (_self, o){
425 o.params = o.params || {};
433 url : baseURL + '/Roo/Person.php'
440 totalProperty : 'total',
441 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
448 allowBlank : 'false',
449 displayField : 'name',
451 emptyText : "Select Person",
452 fieldLabel : 'Owner',
453 forceSelection : true,
454 hiddenName : 'owner_id',
456 loadingText : "Searching...",
458 name : 'owner_id_name',
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',
472 sortInfo : { direction : 'ASC', field: 'id' },
474 beforeload : function (_self, o){
475 o.params = o.params || {};
483 url : baseURL + '/Roo/Person.php'
490 totalProperty : 'total',
491 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
498 allowBlank : 'false',
499 displayField : 'etype',
501 emptyText : "Select core_enum",
502 fieldLabel : 'Status',
503 forceSelection : true,
504 hiddenName : 'status',
506 loadingText : "Searching...",
508 name : 'status_etype',
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',
522 sortInfo : { direction : 'ASC', field: 'id' },
524 beforeload : function (_self, o){
525 o.params = o.params || {};
533 url : baseURL + '/Roo/core_enum.php'
540 totalProperty : 'total',
541 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
548 allowBlank : 'false',
549 displayField : 'etype',
551 emptyText : "Select core_enum",
552 fieldLabel : 'Resolution',
553 forceSelection : true,
554 hiddenName : 'resolution_id',
556 loadingText : "Searching...",
558 name : 'resolution_id_etype',
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',
572 sortInfo : { direction : 'ASC', field: 'id' },
574 beforeload : function (_self, o){
575 o.params = o.params || {};
583 url : baseURL + '/Roo/core_enum.php'
590 totalProperty : 'total',
591 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
596 xtype: 'NumberField',
598 style : 'align:right;',
599 fieldLabel : 'Estimated',
604 xtype: 'NumberField',
606 fieldLabel : 'Spent',
611 xtype: 'DisplayField',
613 fieldLabel : 'Created',
614 name : 'created_when'
617 xtype: 'DisplayField',
619 fieldLabel : 'Last Updated',
620 name : 'updated_when'
629 style : 'margin-left: 10px',
635 labelSeparator : ' ',
637 legend : "Change Status",
642 boxLabel : 'Leave status as NEW',
648 boxLabel : 'Leave status as NEW',
654 boxLabel : 'Leave status as NEW',
660 boxLabel : 'Leave status as NEW',
666 boxLabel : 'Leave status as NEW',
674 legend : "Attachments",
679 fieldLabel : 'Add File',
708 text : "Save Changes"
723 xtype: 'ContentPanel',
727 title : "Full history"
731 xtype: 'LayoutRegion',