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',
20 xtype: 'BorderLayout',
24 xtype: 'ContentPanel',
28 title : "Add / Edit Ticket",
29 adjustments : [30, 30],
35 actioncomplete : function(_self,action)
37 if (action.type == 'setdata') {
38 //_this.dialog.el.mask("Loading");
39 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
42 if (action.type == 'load') {
43 _this.dialog.el.unmask();
46 if (action.type =='submit') {
48 _this.dialog.el.unmask();
52 _this.callback.call(_this, _this.form.getValues());
58 rendered : function (form)
64 style : 'margin:10px;width:1000px;',
65 url : baseURL + '/Roo/mtrack_ticket.php',
76 legend : "Properties",
82 displayField : 'name',
84 emptyText : "Select Projects",
85 fieldLabel : 'Project',
86 forceSelection : true,
87 hiddenName : 'project_id',
89 loadingText : "Searching...",
91 name : 'project_id_name',
93 qtip : "Select Projects",
94 queryParam : 'query[name]',
96 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
97 triggerAction : 'all',
105 sortInfo : { direction : 'ASC', field: 'id' },
107 beforeload : function (_self, o){
108 o.params = o.params || {};
116 url : baseURL + '/Roo/Projects.php'
123 totalProperty : 'total',
124 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
131 allowBlank : 'false',
132 displayField : 'name',
134 emptyText : "Select mtrack_milestone",
135 fieldLabel : 'Milestone',
136 forceSelection : true,
137 hiddenName : 'milestone_id',
139 loadingText : "Searching...",
141 name : 'milestone_id_name',
143 qtip : "Select mtrack_milestone",
144 queryParam : 'query[name]',
145 selectOnFocus : true,
146 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
147 triggerAction : 'all',
155 sortInfo : { direction : 'ASC', field: 'id' },
157 beforeload : function (_self, o){
158 o.params = o.params || {};
166 url : baseURL + '/Roo/mtrack_milestone.php'
173 totalProperty : 'total',
174 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
181 allowBlank : 'false',
182 displayField : 'etype',
184 emptyText : "Select core_enum",
185 fieldLabel : 'Priority',
186 forceSelection : true,
187 hiddenName : 'priority_id',
189 loadingText : "Searching...",
191 name : 'priority_id_etype',
193 qtip : "Select core_enum",
194 queryParam : 'query[etype]',
195 selectOnFocus : true,
196 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
197 triggerAction : 'all',
205 sortInfo : { direction : 'ASC', field: 'id' },
207 beforeload : function (_self, o){
208 o.params = o.params || {};
216 url : baseURL + '/Roo/core_enum.php'
223 totalProperty : 'total',
224 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
231 allowBlank : 'false',
232 displayField : 'etype',
234 emptyText : "Select core_enum",
235 fieldLabel : 'Severity',
236 forceSelection : true,
237 hiddenName : 'severity_id',
239 loadingText : "Searching...",
241 name : 'severity_id_etype',
243 qtip : "Select core_enum",
244 queryParam : 'query[etype]',
245 selectOnFocus : true,
246 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
247 triggerAction : 'all',
255 sortInfo : { direction : 'ASC', field: 'id' },
257 beforeload : function (_self, o){
258 o.params = o.params || {};
266 url : baseURL + '/Roo/core_enum.php'
273 totalProperty : 'total',
274 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
281 allowBlank : 'false',
282 displayField : 'etype',
284 emptyText : "Select core_enum",
285 fieldLabel : 'Classification',
286 forceSelection : true,
287 hiddenName : 'classification_id',
289 loadingText : "Searching...",
291 name : 'classification_id_etype',
293 qtip : "Select core_enum",
294 queryParam : 'query[etype]',
295 selectOnFocus : true,
296 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
297 triggerAction : 'all',
305 sortInfo : { direction : 'ASC', field: 'id' },
307 beforeload : function (_self, o){
308 o.params = o.params || {};
316 url : baseURL + '/Roo/core_enum.php'
323 totalProperty : 'total',
324 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
334 legend : "Status / Resources",
339 allowBlank : 'false',
340 displayField : 'name',
342 emptyText : "Select Person",
343 fieldLabel : 'Developer',
344 forceSelection : true,
345 hiddenName : 'developer_id',
347 loadingText : "Searching...",
349 name : 'developer_id_name',
351 qtip : "Select Person",
352 queryParam : 'query[name]',
353 selectOnFocus : true,
354 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
355 triggerAction : 'all',
363 sortInfo : { direction : 'ASC', field: 'id' },
365 beforeload : function (_self, o){
366 o.params = o.params || {};
374 url : baseURL + '/Roo/Person.php'
381 totalProperty : 'total',
382 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
389 allowBlank : 'false',
390 displayField : 'name',
392 emptyText : "Select Person",
393 fieldLabel : 'Owner',
394 forceSelection : true,
395 hiddenName : 'owner_id',
397 loadingText : "Searching...",
399 name : 'owner_id_name',
401 qtip : "Select Person",
402 queryParam : 'query[name]',
403 selectOnFocus : true,
404 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
405 triggerAction : 'all',
413 sortInfo : { direction : 'ASC', field: 'id' },
415 beforeload : function (_self, o){
416 o.params = o.params || {};
424 url : baseURL + '/Roo/Person.php'
431 totalProperty : 'total',
432 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
439 allowBlank : 'false',
440 displayField : 'etype',
442 emptyText : "Select core_enum",
443 fieldLabel : 'Status',
444 forceSelection : true,
445 hiddenName : 'status',
447 loadingText : "Searching...",
449 name : 'status_etype',
451 qtip : "Select core_enum",
452 queryParam : 'query[etype]',
453 selectOnFocus : true,
454 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
455 triggerAction : 'all',
463 sortInfo : { direction : 'ASC', field: 'id' },
465 beforeload : function (_self, o){
466 o.params = o.params || {};
474 url : baseURL + '/Roo/core_enum.php'
481 totalProperty : 'total',
482 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
489 allowBlank : 'false',
490 displayField : 'etype',
492 emptyText : "Select core_enum",
493 fieldLabel : 'Resolution',
494 forceSelection : true,
495 hiddenName : 'resolution_id',
497 loadingText : "Searching...",
499 name : 'resolution_id_etype',
501 qtip : "Select core_enum",
502 queryParam : 'query[etype]',
503 selectOnFocus : true,
504 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
505 triggerAction : 'all',
513 sortInfo : { direction : 'ASC', field: 'id' },
515 beforeload : function (_self, o){
516 o.params = o.params || {};
524 url : baseURL + '/Roo/core_enum.php'
531 totalProperty : 'total',
532 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
537 xtype: 'NumberField',
539 style : 'align:right;',
540 fieldLabel : 'Estimated',
545 xtype: 'NumberField',
547 fieldLabel : 'Spent',
552 xtype: 'DisplayField',
554 fieldLabel : 'Created',
555 name : 'created_when'
558 xtype: 'DisplayField',
560 fieldLabel : 'Last Updated',
561 name : 'updated_when'
570 style : 'margin-left:10px',
577 legend : "Summary / Details",
582 fieldLabel : 'Summary',
589 fieldLabel : 'Description',
591 name : 'description',
600 legend : "Add Comment",
605 fieldLabel : 'Comment',
624 xtype: 'DisplayField',
626 value : "... last few items of history goes in here.."
635 style : 'margin-left: 10px',
642 legend : "Schedule Work",
647 fieldLabel : 'Tagged to start on'
655 legend : "Attachments",
660 fieldLabel : 'Add File',
676 displayField : 'name',
677 emptyText : "Select Person",
678 fieldLabel : 'Person',
679 forceSelection : true,
680 hiddenName : 'watcher_add_id',
682 loadingText : "Searching...",
684 name : 'watcher_add',
686 qtip : "Select Person",
687 queryParam : 'query[name]',
688 selectOnFocus : true,
689 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
690 triggerAction : 'all',
698 sortInfo : { direction : 'ASC', field: 'id' },
700 beforeload : function (_self, o){
701 o.params = o.params || {};
709 url : baseURL + '/Roo/Person.php'
716 totalProperty : 'total',
717 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
722 xtype: 'DisplayField',
724 value : "..existing watchers..."
731 labelSeparator : ' ',
733 legend : "Change Status",
738 boxLabel : 'Leave status as NEW',
744 boxLabel : 'Leave status as NEW',
750 boxLabel : 'Leave status as NEW',
756 boxLabel : 'Leave status as NEW',
762 boxLabel : 'Leave status as NEW',
771 legend : "Logged work",
774 xtype: 'DisplayField',
776 value : "... timesheet references?..."
797 text : "Save Changes"
812 xtype: 'ContentPanel',
816 title : "Full history"
820 xtype: 'LayoutRegion',
824 xtype: 'LayoutRegion',
828 title : "Ticket Details",
832 xtype: 'LayoutRegion',